为什么我的网址已经在Access-Control-Allow-Origin
的头部了!访问控制 - 允许 - 来源不允许
错误
XMLHttpRequest cannot load http://cdn.localhost/data/voucher/16_ead32751b66fd6c7856b7db0e186574df37a7d08.pdf. Origin http://secure.localhost is not allowed by Access-Control-Allow-Origin.
Refused to get unsafe header "Accept-Ranges"
htaccess的(cdn.localhost)
Header add Access-Control-Allow-Origin "http://secure.localhost"
你有权访问服务器'dyntest.dk'或在那里做了任何更改? – Salman
这两个域都是我的 – clarkk
如果我理解正确,你是从一个不同的域做XMLHTTPRequest。您需要修改您的服务器端脚本以允许跨域请求。 – Salman