vue 使用阿里OSS服务端签名后上传图片,一直报错

vue 使用阿里OSS服务端签名后上传图片,通过后台拿到了需要的数据和上传地址,请求这个上传地址的时候报错,出现跨域问题,在阿里上也配置了 但还是出现这种错误,请问要怎么配置???还需要后台配置什么嘛???
这是报的错:

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 on the requested resource. Origin 'http://192.168.7.149:8090' is therefore not allowed access. The response had HTTP status code 405.


森林海
浏览 2200回答 2
2回答

慕圣4139132

您好,问题解决了吗?我现在出现了和您一模一样的问题

幕布斯7119047

一般这种需要去获取一个token,而且会过期的token。
打开App,查看更多内容
随时随地看视频慕课网APP