Do I need a new key?
khargy
Registered Users Posts: 13 Big grins
I was working locally on a web app using AJAX calls to the v2 API. I used my old key and it worked just fine. Now when I uploaded it to my website I get an XMLHttpRequest error.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://hargy.org' is therefore not allowed access. The response had HTTP status code 403.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://hargy.org' is therefore not allowed access. The response had HTTP status code 403.
0
Comments
Sorcerer and API Guy at SmugMug
Maybe I'm missing something obvious... but how can I do an AJAX call from the webserver?
The callback would change it do JSONP
That doesn't seem to work with the new one...
Sorcerer and API Guy at SmugMug
Ok, in the meantime I was able to create a php passthrough page to send the JSON back to the front end. It just needs like an unnecessary step.