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

Turns the upgrade-insecure-requests directive off in development mode #723

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

patnir
Copy link
Contributor

@patnir patnir commented Sep 3, 2024

What changed?

When this is on, safari forces an https connection to the server. This is not ideal for development as it requires a valid SSL certificate. This is turned off in development mode.


Reminder: If content (docs, blogs, pages) is moved or renamed, please ensure there are no broken links.

Copy link

vercel bot commented Sep 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2024 10:29pm

@patnir patnir requested a review from dgca September 3, 2024 21:23
When this is on, safari forces an https connection to the server. This is not ideal for development as it requires a valid SSL certificate. This is turned off in development mode.
next.config.js Outdated
@@ -11,6 +11,8 @@ const nextConfig = {
},
},
async headers() {
const isDev = process.env.NEXT_PUBLIC_ORIGIN !== 'https://ironfish.network/';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: I think the more common way of checking for this is proecss.env.NODE_ENV === "development"

@patnir
Copy link
Contributor Author

patnir commented Oct 14, 2024

image
Added the env variable to vercel

@patnir patnir enabled auto-merge October 14, 2024 22:28
@patnir patnir merged commit b4a4168 into master Oct 14, 2024
3 checks passed
@patnir patnir deleted the rahul/turn-upgrade-insecure-requests-off-in-dev branch October 14, 2024 22:29
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