Access to XMLHttpRequest at httpsaihuoyun-saas-testoss-cn-beijing-internalaliyuncscom from origin httplocalhost3100 has been blocked by CORS policy Response to preflight request doesnt pass access con
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.
To 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.
In this case, you should configure the server at 'https://aihuoyun-saas-test.oss-cn-beijing-internal.aliyuncs.com/' to include the following response header:
Access-Control-Allow-Origin: http://localhost:3100
This will allow requests from your localhost to access the server's resources
原文地址: https://www.cveoy.top/t/topic/iapZ 著作权归作者所有。请勿转载和采集!