在登录页面时遇到报错👇
has been blocked by CORS policy: Request header field token is not allowed by Access-Control-Allow-Headers in preflight response.
第一时间以为是跨域问题经过查找资料发现问题是在配置Request Headers 中
原因为后台处理跨域问题中没有配置token字段
在登录页面时遇到报错👇
has been blocked by CORS policy: Request header field token is not allowed by Access-Control-Allow-Headers in preflight response.
第一时间以为是跨域问题经过查找资料发现问题是在配置Request Headers 中
原因为后台处理跨域问题中没有配置token字段