question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mixed Content error while uploading a file to https endpoint

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arturicommented, Jan 21, 2021

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.

1reaction
sido420commented, May 29, 2020

@Acconut I did an npm install and ran the same code which works now.

I think the problem was in

 <script type="text/javascript" src="https://transloadit.edgly.net/releases/uppy/v1.10.1/uppy.js"></script>
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found