Dynamic Javascript pages json request

Avatar

Avatar

vendimb15716755

Avatar

vendimb15716755

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)

Avatar

Avatar

vendimb15716755

Avatar

vendimb15716755

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

Answers (1)

Answers (1)

Avatar

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239
florentlb

02-01-2018

Thanks for letting us know, Vendim!

Florent