【跨域问题】Access to XMLHttpRequest at'http://localhost:跨域问题解决

错误: Access to XMLHttpRequest at ‘http://localhost:3000/framework/create’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

如果使用的是Chrome浏览器,去下载 ‘Allow-Control-Allow-Origin: *’ ,开启后刷新界面即可。
下载网址:https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi
【跨域问题】Access to XMLHttpRequest at'http://localhost:跨域问题解决_第1张图片
【跨域问题】Access to XMLHttpRequest at'http://localhost:跨域问题解决_第2张图片

你可能感兴趣的:(跨域问题)