xmlhttprequest post json cors

Reason for use of accusative in this phrase? http.send (params); Finally, we send the parameters with the request. However, there is an approach to overcome this problem. In JSON, you wont be allowed to do so and you will end up with a CORS message as in the image below. Sending an HTTP GET request to this URL returns the following data. Also when I use a GET request i get {result: null, okay: true}. Cors error when i access to a JSON local file, cross origin requests are only supported for protocol schemes, Set up a simple web server using php + nginx. XMLHttpRequest is a built-in browser object that allows to make HTTP requests in JavaScript. The endpoint I am calling expects json header and JSON data. In an HTML page, a