You are not logged in.

#1 2014-06-11 11:56:03

palashc
Member
Registered: 2013-09-17
Posts: 2

CORS disabled.

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 smile

Offline

Board footer

Powered by FluxBB