XMLHttpRequest cannot load ... No 'Access-Control-Allow-Origin'

Status
Not open for further replies.

chessx15

New Member
Messages
2
Reaction score
0
Points
1
Any idea how this is going to be fixed.

From developer tool,

XMLHttpRequest cannot load http://www.chess.x10host.com/pgn4web/arena1.pgn?noCache=B72ACFD5E8.
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header
is present on the requested resource. Origin 'http://chess.x10host.com' is therefore not allowed access.


The site is supposed to broadcast live chess games at.
http://chess.x10host.com/pgn4web/live1.html

07rpGq3.png



Thanks for the help.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
The browser will see chess.x10host.com and www.chess.x10host.com as two different servers. That's the way it's supposed to work. You either need to point to the same server name from your main page (so, call http://chess.x10host.com/pgn4web/arena1.pgn?noCache=B72ACFD5E8 or force a redirect on your main page to the www... version) or add an access control header to your XML page.
 
Status
Not open for further replies.
Top