fetch跨域问题

Fetch API cannot load
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

同样的ajax,get可以用,但是post就会出现这种问题


侃侃无极
浏览 727回答 1
1回答

陪伴而非守候

协调后端解决,不同语言设置Access-Control-Allow-Origin的方式不同。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript