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

Solve the http problem by changing the default settings because it should be https by default. #1289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0x0Ath
Copy link

@0x0Ath 0x0Ath commented Jan 31, 2024

Normally, when calling the object storage system class and invoking the put function to upload an image file to the bucket, it returns an HTTP URL by default. However, it should be HTTPS by default. This is crucial because some people use it, receive the result URL, and then promptly apply it to their work. When images from the object storage system, which uploads with the default setting 'secure=false,' are displayed on a website, it can make the website appear insecure. For certain websites that request location access, devices like iOS and Android 10, 14 may outright reject it. I believe the default setting should be adjusted to 'true' to address this issue.

This is because, typically, Alibaba Cloud provides HTTPS by default to enhance security. I have consulted with the SA (Solution Architect) of Alibaba Cloud Thailand, and he agrees that the code can be confusing. Many developers who call the library may face the issue of receiving images with HTTP URLs, necessitating them to use '.replace('http','https'). If this is rectified, I am confident it will resolve the problem for many developers.

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

Successfully merging this pull request may close these issues.

None yet

1 participant