Expand my Community achievements bar.

SOLVED

Dynamic Javascript pages json request

Avatar

Level 5

HI

I have created a .jssp page that I can make a call to Message center to send emails. The issue that I am having is that when I call the URL from the Ajax/Jquery I get the Cross Domain issue (No 'Access-Control-Allow- Origin').

Is there a way to handle that on the header or anywhere on the configuration? Since the message center is hosted on the cloud I dont have any visibility over the apache config to play around with CORS.

Also trying with jsonp no dice.

any help is appreciated.

thanks

1 Accepted Solution

Avatar

Correct answer by
Level 5

I was able to do a workaround for this  by implementing a callback function and use jsonp to get a response back. So practically I can do use this as  REST api and make a call from ajax.

thanks

View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

I was able to do a workaround for this  by implementing a callback function and use jsonp to get a response back. So practically I can do use this as  REST api and make a call from ajax.

thanks

Avatar

Level 10

Thanks for letting us know, Vendim!

Florent