News for hackers. Stuff that matters.
Re:API Shouldn't Redirect HTTP to HTTPS by inopinatus on Wednesday May 29, 2024 @12:03AM (#40508330)
I think it's fair to assume j. random user isn't typing "http://api.example.net" into their web browser.

leading www perhaps, leading api no.

Re:API Shouldn't Redirect HTTP to HTTPS by tracker1 on Wednesday May 29, 2024 @12:49PM (#40514036)
You'd be surprised... generally if there's a dedicated hostname for the API, I would expect / to either display or redirect to API docs.

Also, doesn't help when you're reverse proxying /api to $API/api

Re:API Shouldn't Redirect HTTP to HTTPS by inopinatus on Thursday May 30, 2024 @01:05AM (#40520257)
Posting on this forum means you are probably not J. Random User. I mean specifically anyone who will not grasp the difference between http:// and https://api.example.com.