Skip to content

Tag: access-control

CORS not working php

I am trying to post form data from www.siteone.com to www.sitetwo.com via CORS. My ajax code is this: and the file cors.php in www.sitetwo.com is as follows: But still Access-control-Allow-Origin error is thrown. The error thrown is this: I came to know that, using CORS by just allowing the remote website via…