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

fix: redirect to the url which starts with https:// when logged out if swa is started with --ssl flag #195

Merged
merged 3 commits into from
May 10, 2021

Conversation

horihiro
Copy link
Contributor

Currently, a request to /.auth/logout always is redirect to http://.

const uri = `http://${host}`;

Because this causes a redirection to an invalid URL when swa is started with --ssl flag, this PR switches the protocol of URL by the value of process.env.SWA_CLI_APP_SSL.

src/auth/routes/auth_logout.ts Outdated Show resolved Hide resolved
Co-authored-by: Wassim Chegham <1699357+manekinekko@users.noreply.github.com>
@horihiro horihiro requested a review from manekinekko May 10, 2021 08:04
@manekinekko manekinekko merged commit c31403e into Azure:main May 10, 2021
@horihiro horihiro deleted the fix-redirection-on-logout-with-ssl branch May 10, 2021 11:59
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