Answer the question
In order to leave comments, you need to log in
How to get JSON sypexgeo in JS?
How to get JSON from api.sypexgeo.net ? I tried a bunch of options with stack'a - nothing solved the problem.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
Answer the question
In order to leave comments, you need to log in
Same -origin policy
Same-origin policy is part of the modern browser security mechanism that isolates Web content coming from different domains. That is, if the content in multiple windows or frames is loaded from different servers, they cannot access each other's data and scripts. However, the unity of origin policy applies to data dynamically loaded by the XMLHTTPRequest object, but does not apply to JavaScript files imported into an HTML document by <script src="..." > tags. This policy is implemented in all commonly used browsers.
======
As an option, write a proxy script in php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question