Skip to content

Conversation

@e752938
Copy link

@e752938 e752938 commented Jul 19, 2022

There are a lot of people got this UNABLE_TO_VERIFY_LEAF_SIGNATURE error when using rewrites function to external https url: https://github.com/vercel/next.js/search?q=unable+to+verify+the+first+certificate (and more if you google it...
We should add an option for users to ignore this error during development. Like this one proposed: #28334

Then user can set rewriteSecure: false in next.config.js file to ignore this type of error.

Allow user to set `secure: false` for rewrites function in next config
Copy link
Member

@ijjk ijjk left a comment

Choose a reason for hiding this comment

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

Hi, I'm not sure we want to make this a global config in next.config.js as it could be very easy to set this and accidentally leave it for production. Potentially we could have an experimental config to allow specific rewrite destinations to use secure: false.

I'm gonna close this for now although we can continue investigating this on the mentioned discussion.

@ijjk ijjk closed this Aug 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants