Skip to content Skip to sidebar Skip to footer

Jquery Form Plugin : Xmlhttprequest Cannot Load Http://www.....no 'access-control-allow-origin'

I developed a file manager based on jQuery Form Plugin plugin Recently, i find myself in front of this error XMLHttpRequest cannot load http://www.****.com/. Response to preflight

Solution 1:

It looks like you have misinterpreted the problem. I doubt it has anything to do with the size of the file.

Look at the error message:

cannot load http://www.test.com/ and 'http://test.com' not allowed access.

You're changing the site you are loading in your browser from www.test.com to test.com and are making it a cross-origin request in the process.

  • Use relative URLs in your code
  • Pick one hostname to host your site on
  • Redirect requests from the other hostname to it

Post a Comment for "Jquery Form Plugin : Xmlhttprequest Cannot Load Http://www.....no 'access-control-allow-origin'"