Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SignURL生成上传的URL时,不应该让Content-Type参与签名 #317

Open
CcccFz opened this issue Mar 1, 2022 · 1 comment
Open

Comments

@CcccFz
Copy link

CcccFz commented Mar 1, 2022

https://help.aliyun.com/document_detail/59670.htm?spm=a2c4g.11186623.0.0.482924cbR6N1lg#concept-59670-zh
image
如题,前端没用匹配的Content-Type,就会出现SignatureDoesNotMatch,十分不易用。
可参考,minio的签名接口,不受Content-Type限制,前端不需要Content-Type便能直接上传,更易用

@updoo
Copy link

updoo commented Jun 9, 2022

设置了Content-Type生成的url,浏览器直接打开出现SignatureDoesNotMatch,把url中的&替换成uft8编码\u0026后可以正常访问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants