CORS错误:解决来自localhost的跨域请求被阻止
This error message indicates that the browser is blocking the request you made from your localhost (http://localhost:3100) to the remote server (https://aihuoyun-saas-test.oss-cn-beijing-internal.aliyuncs.com/) due to the Cross-Origin Resource Sharing (CORS) policy.\n\nTo resolve this issue, you need to configure the server to include the 'Access-Control-Allow-Origin' header in its response. This header specifies which domains are allowed to make requests to the server. \n\nIn this case, you should configure the server at 'https://aihuoyun-saas-test.oss-cn-beijing-internal.aliyuncs.com/' to include the following response header:\n\nAccess-Control-Allow-Origin: http://localhost:3100\n\nThis will allow requests from your localhost to access the server's resources.
原文地址: https://www.cveoy.top/t/topic/pTa2 著作权归作者所有。请勿转载和采集!