You are not logged in.
Pages: 1
I am working on a project, that requires to pull data from Yahoo Finance is JSON. Currently, I am getting the following error whenever my AJAX code tries to connect.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://query.yahooapis.com/v1/public/yq … tables.env. This can be fixed by moving the resource to the same domain or enabling CORS. yql
"Request failed: error, "
I read about enabling CORS by allowing access control headers. I went ahead and added that to my htaccess file.
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
But still I am unable to get CORS working. Can someone please help.? Thank you
Offline
Pages: 1