Setting CORS (cross-origin resource sharing) on Apache with correct response headers allowing everything through | Benjamin Horn I finally got around the problem with Firefox and CORS. and it works in every browser except Firefox. tRequestHeader('Content-Type', 'application/x-www-form-urlencoded') I've tried using Angular, jQuery, and a basic XMLHTTPRequest object, like so: var data = "id=1234" ![]() Here's what my server is responding with HTTP/1.1 200 OKĪccess-Control-Allow-Methods: GET, POST, OPTIONSĪccess-Control-Allow-Headers: Content-TypeĪccess-Control-Request-Headers: X-Requested-With, accept, content-type Īs far as I can tell I've set all the correct headers on my PHP to allow this to work. This can be fixed by moving the resource to the same domain or enabling CORS. ![]() I'm trying to make a simple cross-origin request, and Firefox is consistently blocking it with this error:Ĭross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |