Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bungie.net redirecting mayhem #55

Closed
sgtfrankieboy opened this issue Sep 6, 2017 · 4 comments
Closed

Bungie.net redirecting mayhem #55

sgtfrankieboy opened this issue Sep 6, 2017 · 4 comments

Comments

@sgtfrankieboy
Copy link

sgtfrankieboy commented Sep 6, 2017

When you make a request to bungie.net without a /, you will be redirected multiple times. Causing 3 loads to bungie.net

Example:
Req 1: https://www.bungie.net/platform/Destiny2/Milestones
Req 2: http://www.bungie.net/platform/Destiny2/Milestones/
Req 3: https://www.bungie.net/platform/Destiny2/Milestones/

Preferred would be:
Req 1: https://www.bungie.net/platform/Destiny2/Milestones
Req 2: https://www.bungie.net/platform/Destiny2/Milestones/

@vthornheart-bng
Copy link
Contributor

Yeah, we've got what feels like a boatload of redirection error-related issues. RKing788's mentioned issue involved redirection because he was using bungie.net instead of www.bungie.net, which feels bad as well.

I'm going to call this an enhancement, but one I'd really like to fix.

@CoryG89
Copy link

CoryG89 commented Jul 29, 2018

Apparently this was never actually fixed. Caused me some issues due to the fact that it redirects to http from https on an ajax call, breaking mixed content security rules by default in my browser. Luckily I looked here and was able to fix it by adding a trailing slash as mentioned in this issue.

If this isn't going to be fixed any time soon, it would probably be just as helpful to call out the trailing slash workaround in the documentation.

@floatingatoll
Copy link

floatingatoll commented Jul 29, 2018 via email

@CoryG89
Copy link

CoryG89 commented Jul 29, 2018

Thanks for the reply. Hmm, I guess I was thinking a note somewhere toward the top of https://bungie-net.github.io/ -- maybe under "Connecting to the API" --> "Security" ?

I was just thinking a small item about HTTPS/SSL just noting that while the APIs are available over https, if you access them without the trailing slash, then you will be redirected to http, causing browsers to block connections and show warnings by default.

Probably not a big deal either way, but it would have likely taken me a while longer to figure out what was going on had I not found this issue. I would be happy to open a PR to add a note if there is somewhere that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants