01-15-2015 11:51 AM
Hello,
I get this error whenever I initiate a get or post request.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
I've tried IE, Chrome and Firefox.
I was able to log in using the standard form post method in the documentation's sample codes.
However, I can't seem to initiate php calls using jquery get/post, ajax or mootools request get/post.
If anyone can provide a sample request using jquery, it would be very helpful.
Thanks!
01-16-2015 11:08 AM
Hello,
This is a browser security measure that may work properly in Safari. I have successfully used the XMLHttpRequest object cross domain in Safari successfully, but get the same security errors in Firefox and Chrome. URL API is intended to be used nearly entirely in an HTML form environment using POST method. For new development, we generally recommend XML API (HTTPS POST), along with server side communication or traditional application, rather than browser app.
01-16-2015 11:26 AM
Thanks Nathan!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide