Reputation: 1142
I have github pages website which makes request to a hosted server which is HTTP and my browser blocks it.
Its assignment for university so I don't really want to pay for HTTPS on the server and I can't use something else for the front-end as I have sent the url to my professor expecting that this is where my web app will be hosted.
Is there anything I can do, which doesn't involve paying that much money?
Upvotes: 7
Views: 5387
Reputation: 3022
I encountered this same issue when making API calls. Here's an easy workaround:
Source: johnalcher.me
Upvotes: 15
Reputation: 42174
According to the GitHub Pages help docs:
HTTPS enforcement is required for GitHub Pages sites created after June 15, 2016 and using a github.io domain.
That means you can't disable the https://
redirect. You could use a custom domain which then leaves the https://
stuff up to you.
Or you could move the stuff from the other server to GitHub Pages, assuming it's not too big.
Upvotes: 0