【发布时间】:2011-10-21 06:50:18
【问题描述】:
可能重复:
How do I use Access-Control-Allow-Origin? Does it just go in between the html head tags?
我正在尝试允许跨域请求,但我不知道将 Access-Control-Allow-Origin 放在哪里。它是在 html 请求文件还是 index.html 中?我把这段代码放在了我的 html 请求文件中,如果这太离谱了,不要笑我。
<head>
Access-Control-Allow-Origin: *
</head>
【问题讨论】:
标签: html header access-control