-
Notifications
You must be signed in to change notification settings - Fork 126
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
fix(middleware): respect host protocol #611
Conversation
|
Coverage Report
File Coverage
|
@conico974 I have only update the middleware as I'm not sure if we will use the edge-adapter. |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the issue with the edge-adapter ?
a46d45a
to
6ebf8f1
Compare
@conico974 PTAL and let me know if the implementation is ok. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks
The middleware handler default to https and it's causing troubles with the cloudflare dev server (wrangler dev) which uses http by default.
It is possible to force wrangler dev to use https (--local-protocol https) but the browser then shows a warning because the dev certificate is not secure.