Mixed Content error while uploading a file to https endpoint
See original GitHub issueI am getting the following error in Chrome console when I try to upload a file through Uppy.
Mixed Content: The page at '<HTTPS URL>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<HTTP URL>'. This request has been blocked; the content must be served over HTTPS.
Also, noticed the following error:
[Uppy] [15:46:19] Failed to upload filename.xlsx tus: failed to resume upload, caused by [object ProgressEvent], originated from request (response code: 0, response text: )
I have used console.log to print the endpoint and made sure its valid and points to https endpoint, hence this mixed content error doesn’t make sense.
Also, looked inside localstorage and found a key with http://
endpoint. I am not sure where its
coming from.
FYI: The server is behind AWS LB (for SSL termination etc).
The exact same setup works fine on localhost.
This is a common issue and may be similar to https://github.com/transloadit/uppy/issues/510 but 510 has no solution (everyone seems to forget how they resolved it 😃).
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
How to Quickly Fix Mixed Content Warnings (HTTPS/SSL)
Mixed content warnings are common after an HTTPS migration or adding a new service. Check out how to quickly fix these on your...
Read more >How to Find and Fix Mixed Content Warnings on HTTPS Sites
How to Find and Fix Mixed Content Warnings on Your HTTPS Website · Step 1: Visit Your Website · Step 2: Verify Your...
Read more >How to fix a website with blocked mixed content - Web security
The best strategy to avoid mixed content blocking is to serve all the content as HTTPS instead of HTTP. For your own domain,...
Read more >Fixing mixed content - web.dev
When visiting an HTTPS page in Google Chrome, the browser alerts you to mixed content as errors and warnings in the JavaScript console....
Read more >Fix Mixed Content Issue: What Is it And How to Fix It? - Blog
By now you must have enabled HTTPS on your server. Great. If not, don't worry, you can do that anytime by contacting your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for reporting @naknomum and all. I’ll close this for now, as it is not strictly Uppy, unless you think it is? Please feel free to comment further for future reference if you solve this for
Flask-Tus
.@Acconut I did an npm install and ran the same code which works now.
I think the problem was in