Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Dynamic Javascript pages json request

vendimb15716755
Level 4
Level 4

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
vendimb15716755
Correct answer by
Level 4
Level 4

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
vendimb15716755
Correct answer by
Level 4
Level 4

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

florentlb
Level 10
Level 10

Thanks for letting us know, Vendim!

Florent