POST一个接口的时候,在编辑器下没问题,打包出来以后,就报错了。
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.
同学你好,语言不一样可以参考一下:
https://blog.csdn.net/whitek387/article/details/113826589
https://www.cnblogs.com/Courage129/p/14005223.html
https://blog.csdn.net/lindali1115/article/details/108096631