Dynamic Javascript pages json request | Community
Skip to main content
Level 4
December 19, 2017
Solved

Dynamic Javascript pages json request

  • December 19, 2017
  • 2 replies
  • 2733 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vendimb15716755

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

2 replies

vendimb15716755AuthorAccepted solution
Level 4
December 20, 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

florentlb
Level 10
January 2, 2018

Thanks for letting us know, Vendim!

Florent