前端url是http://localhost:3333/index.html#/detail這樣的格式訪問后端,報跨域錯誤No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3333' is therefore not allowed access.請問后端如何設置config.default.js里設置白名單:http://localhost:3333/index.html#/detail仍然無效。百思不得姐,求教高手!
前后端分離下,egg如何設置跨域
蠱毒傳說
2018-09-24 15:53:10