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

✨ Handle all redirect codes for sub sites #405

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

cowboyd
Copy link
Member

@cowboyd cowboyd commented Dec 17, 2024

Motivation

When we are proxying a website, and that site sends a redirect, we need to redirect through ourselves. This was only happening on a 301, but there are actually all kinds of redirect codes that have to be handled. As it turns out, fresh framework which Graphgen was using uses 302 for its redirects.

Approve

This goes ahead and adds 302,307,308 to the list, so that we pick up all current and future redirects.

When we are proxying a website, and that site sends a redirect, we
need to redirect through ourselves. This was only happening on a 301,
but there are actually all kinds of redirect codes that have to be
handled. As it turns out, fresh framework which Graphgen was using
uses 302 for its redirects.

This goes ahead and adds 302,307,308 to the list, so that we pick up
all current and future redirects.
@cowboyd cowboyd requested review from taras and elrickvm December 17, 2024 16:13
Copy link

netlify bot commented Dec 17, 2024

Deploy Preview for frontside canceled.

Name Link
🔨 Latest commit a1a8ee9
🔍 Latest deploy log https://app.netlify.com/sites/frontside/deploys/6761a3310f6de40008fe53b8

@cowboyd cowboyd merged commit 1d6f29c into production Dec 17, 2024
7 checks passed
@cowboyd cowboyd deleted the redirect-all branch December 17, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants