You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
使用的antd版本是3.19.5,上传的方法是服务器端签名,js直传
我可以确定的是oss是配置了允许跨域的,小程序可以通过我服务器段生成的签名,policy上传文件
oss提供的jssdk也是可以的,但是用antd的上传组件不行,一直提示跨域
Access to XMLHttpRequest at 'https://xxx.com/' from origin 'https://xxxxxx.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
具体代码如下
The text was updated successfully, but these errors were encountered:
使用的antd版本是3.19.5,上传的方法是服务器端签名,js直传
我可以确定的是oss是配置了允许跨域的,小程序可以通过我服务器段生成的签名,policy上传文件
oss提供的jssdk也是可以的,但是用antd的上传组件不行,一直提示跨域
Access to XMLHttpRequest at 'https://xxx.com/' from origin 'https://xxxxxx.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
具体代码如下
The text was updated successfully, but these errors were encountered: