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.

阅读 4.9k
1 个回答

一般这种需要去获取一个token,而且会过期的token。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题