在使用 vue-resource post 到别的站点时,提示如下的错误:
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
网上搜了下,这属于跨域请求的问题,请问需要怎么解决?
在使用 vue-resource post 到别的站点时,提示如下的错误:
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
网上搜了下,这属于跨域请求的问题,请问需要怎么解决?