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

以前開發vue項目時,須要在請求頭裏添加一個token字段,開發的時候都正常,等到部署到正式環境發現不少版本比較低的chorme瀏覽器都報錯,錯誤以下:前端 XMLHttpRequest cannot load http://******** .Request header field token is not allowed by Access-Control-Allow-Headers in
相關文章
相關標籤/搜索