-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
S3: header errors when uploading file #5376
Comments
@Amplifiyer Same here. Any updates? What is the latest safe version with which these errors could be avoided? |
same here |
Same here |
same here |
1 similar comment
same here |
The fix will be soon available on an unstable version of aws-amplify and on a stable version when we do a production release. |
I am having the same issue, however, in downloading (instead of uploading file) from S3: |
Any updates on the fix for this issue? I'm having the same trouble when trying to upload a file using Storage.put() |
@edreinoso are you facing this issue even with latest Amplify version? (Make sure to delete your lock files and node_modules ) |
@Amplifiyer thanks for the quick response. I'm using this version of Amplify ├── aws-amplify@3.0.8 Based on the thread and your previous message, I'm assuming that I would have to update to a newer version. |
Just tried updating to a newer version It worked when putting objects into a bucket. Thanks @Amplifiyer |
Still having the same error in react.
Please get this issue prioritized. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
When uploading a file to S3, I get error/warning messages from the browser:
Refused to set unsafe header "content-length"
Refused to set unsafe header "host"
in chrome
Attempt to set a forbidden header was denied: content-length
Attempt to set a forbidden header was denied: host
if firefox
To Reproduce
Using the
aws-amplify
library:storageClass.put(key, blob, { level, contentType: type, cacheControl: 'max-age=31536000'}))
and CORS settings in S3:
PS: let me add that the image is successfully uploaded to S3
The text was updated successfully, but these errors were encountered: