Dynamic Javascript pages json request

vendimb15716755

18-12-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

vendimb15716755

20-12-2017

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