1

Possible Duplicate:
How do I use Access-Control-Allow-Origin? Does it just go in between the html head tags?

I'm trying to allow cross domain requests, but I don't know where to put Access-Control-Allow-Origin. Does it go in the html request file or index.html? I put this code in my html request file, don't laugh at me if this is way off.

<head>
Access-Control-Allow-Origin: *
</head>
Community
  • 1
  • 1
davis
  • 1,911
  • 6
  • 26
  • 50

2 Answers2

0

PHP Example - https://developer.mozilla.org/en-US/docs/Web/HTTP/Server-Side_Access_Control Server-Side Access Control (CORS)

Dylan
  • 1,681
  • 11
  • 16
DvideBy0
  • 678
  • 2
  • 12
  • 27
-2

Access-Control-Allow-Origin can't go inside the head tags, it is an html header so it belongs in php script.

Tim Post
  • 33,371
  • 15
  • 110
  • 174
davis
  • 1,911
  • 6
  • 26
  • 50