#userRole

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

今使用axios请求数据过程中遇到同事设置的请求头,在我请求的接口中部不被允许,于是老是提示RequestheaderfielduserRoleisnotallowedbyAccess-Control-Allow-Headersinpreflightresponse.异常最后使用transformRequest干掉不需...