0

As the title says, when I try to load an HTTPS (not HTTPS) resource from a web host, GitHub Pages always gives me the 404 when tries to execute the GET method.

In example. having this piece of code:

<video width="560" controls="">
  <source src="http://webhost.com/data/aaa/aaa.mp4" type="video/mp4">
</video>

Always returns: GET https://webhost.com/data/aaa/aaa.mp4 404 (note that is https and not http).

There is a way to bypass the enforced HTTPS?

  • I don't think github pages automatically rewrites http to https. It's more likely your browser is doing that. – Evert Nov 20 '22 at 05:35
  • @Evert you were right, Chrome does that automatically, to "solve" this I used https://stackoverflow.com/a/69359943/19096896 – NewbieInFlask Jan 10 '23 at 15:23

0 Answers0