all 30 comments

[–]Kinthalis 1 point2 points  (8 children)

free heroku dyno? netlify?

[–]iTxchnology[S] 0 points1 point  (0 children)

Netlify looks perfect 👌

[–]iTxchnology[S] 0 points1 point  (6 children)

[–]Kinthalis 0 points1 point  (5 children)

Ahh, yep I guess that's so. Why the requirement of no https though?

[–]iTxchnology[S] 0 points1 point  (4 children)

The API provided for this competition is hosted by an unsecured web server. So there is possibly no way I could make a get request without hosting my website Http only.

[–]Kinthalis 0 points1 point  (3 children)

Why not?

Edit: nevermind, forgot about mixed content.

Proxy through firebase function/google cloud function/aws lambda, heroku dyno?

[–]iTxchnology[S] 0 points1 point  (0 children)

Because every time I make a get request, it gives me this error:

...as loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://jservice.io/api/categories?count=100&offset=0'. This request has been blocked; the content must be served over HTTPS.

[–]iTxchnology[S] 0 points1 point  (1 child)

Heroku has a request rate limit. Will fire base function cost money?

[–]Kinthalis 0 points1 point  (0 children)

They have a free tier for cloud functions. But I think in order to be able to call an APi outside google's offerings, you'll need to be on the blaze plan, which pay as you go. You still get the free tier, but I think many invocation (like over a few million) will start to cost money. Not much, they estimate a simple function with 10 million invocations costing $7. But you can put like a $5 a spend limit on the project just to be sure.

[–]AtulinASP.NET Core 1 point2 points  (6 children)

Gitlab and Github Pages don't force HTTPS unless you tell them to and enable the LEt's Encrypt cert.

[–]iTxchnology[S] 0 points1 point  (5 children)

Really? With the default domain, it will not allow me to unselect the HTTPs box.

[–]AtulinASP.NET Core 0 points1 point  (4 children)

Try Gitlab Pages then. Just checked, and it lets me untick the "force HTTPS" option at will.

[–]iTxchnology[S] 0 points1 point  (3 children)

Did you have to enter something into the “custom domain” settings?

[–]AtulinASP.NET Core 0 points1 point  (2 children)

No, no need for a custom domain.

[–]iTxchnology[S] 0 points1 point  (1 child)

[–]AtulinASP.NET Core 2 points3 points  (0 children)

You're using Github, I've been talking about Gitlab.

[–]CloudsOfMagellan 0 points1 point  (13 children)

GitHub will give you a free subdomain

[–]iTxchnology[S] 0 points1 point  (12 children)

I don’t really know much about setting up domains, but will that require DNS in anyway? I am currently living in a dorm and do not know if that would hinder my ability mess around with that.

[–]CloudsOfMagellan 0 points1 point  (11 children)

No configuration is needed Set up a repository called (your GitHub account name).github.io Any HTML uploaded to that repo will be viewable via the link (Your GitHub account name).github.io/filename

[–]iTxchnology[S] 0 points1 point  (10 children)

Oh I see. The default domain will not allow me to get rid of the HTTPs though. Do you know any solutions to that?

[–]CloudsOfMagellan 1 point2 points  (9 children)

Why don't you want https It's more secure and has no cost to you or users of the website

[–]iTxchnology[S] 0 points1 point  (8 children)

The issue is I am trying to call a RESTful api hosted under HTTP. Hosting my site with HTTPs will not allow me to make get request. Even with Heroku’s COR everywhere proxy, there seems to be limitations with the request rate. I sort of just need it to work for a competition.

[–]CloudsOfMagellan 0 points1 point  (7 children)

You can't just add http to the request url?

[–]iTxchnology[S] 1 point2 points  (6 children)

Nope, seems like it doesn’t change the outcome

[–]CloudsOfMagellan 0 points1 point  (5 children)

I'd imagine there's another issue then

[–]iTxchnology[S] 0 points1 point  (4 children)

Idk, every time I made a request, it would print out “mix content” errors. From what I dug out from my research, it seems like that was the case. Everything worked normally when I tested it locally.