0

Access to XMLHttpRequest at 'https://i.antsexpress.net/ants-express-ctrl/membership/getAccountInfo.gou' from origin 'https://antsexpress.net' has been blocked by CORS policy: Request header field jwt is not allowed by Access-Control-Allow-Headers in preflight response.

报了这个错。jwt是我header里需要的获取token的
nginx配置
image.png
哪有问题呢

kidddder 541
4 天前提问

1 个回答

0

Request header field jwt is not allowed by Access-Control-Allow-Headers in preflight response

这个jwt请求头需要在CORS响应里面列出来。

Access-Control-Allow-Headers: jwt

推广链接