CORS Issue

Avatar

Avatar

asariaaara

Avatar

asariaaara

asariaaara

06-12-2018

Hey geeks.
I have a webapp which runs a javascript and returns JSON data when hit. However when the link is used in browser there seems to be CORS issue.
Help needed
Regards.

Replies

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

03-01-2019

Hi,

You have to enable CORS in Apache, or IIS if using that:

https://enable-cors.org/server_apache.html

https://enable-cors.org/server_iis7.html

Thanks,

-Jon

Avatar

Avatar

asariaaara

Avatar

asariaaara

asariaaara

03-01-2019

Hey Jon,

The API I'm accessing is on third party server and i don't think we will be able to do that.

Is there any other way to overcome the issue.

Thanks.

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

04-01-2019

Hi,

If you can, the exploit itself would be worth more money than the feature being added.

Thanks,

-Jon