有人能告诉我为什么我的请求标头没有设置 cors 标头吗,尽管在 apache 中 httpd.conf 的配置就是这样做的。我是不是漏掉了什么??提前谢谢。
<Directory "${SRVROOT}/htdocs">
Header set Access-Control-Allow-Origin "some url"
Header set Access-Control-Allow-Headers "Accept, Accept-Charset, Accept-Encoding, Accept-Language, Connection, Content-Type, Cookie, DNT, Host, Keep-Alive, Origin, Referer, User-Agent, X- CSRF Token, X-Requested-With "
Header set Access-Control-Allow-Methods "*"
Header set Access-Control-Allow-Credentials true
</Directory>