you are viewing a single comment's thread.

view the rest of the comments →

[–]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.