Vue uses Ali OSS server to sign and upload pictures. What can I do?

vue uses Ali OSS server signature to upload images, and obtains the required data and upload address through the backend. An error occurred when requesting this upload address, resulting in cross-domain problems. It is also configured on Ali, but this error still occurs. How to configure it? What else do you need to configure in the background?
this is a reported error:

POST https://lordray-pic.oss-cn-sh. 405 (Method Not Allowed)
Failed to load https://lordray-pic.oss-cn-sh.: No "Access-Control-Allow-Origin" header is present ont he requested resource. Origin" http://192.168.7.149:8090" is therefore not allowed access. The response had HTTP status code 405.

May.27,2021

go to the OSS management console to configure: set cross-domain rules. For more information, please see the aliyun help documentation

.
Menu