Skip to content

Commit

Permalink
[Angular] Fix OAuth2/Keycloak Forces HTTPS Redirects in Development M…
Browse files Browse the repository at this point in the history
…ode (#28366)
  • Loading branch information
qmonmert authored Jan 2, 2025
1 parent ad935ba commit 9ade3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/angular/templates/webpack/webpack.custom.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = async (config, options, targetOptions) => {
function (proxyReq) {
// URI that will be retrieved by the ForwardedHeaderFilter on the server side
proxyReq.setHeader('X-Forwarded-Host', 'localhost:<%- devServerPortProxy %>');
proxyReq.setHeader('X-Forwarded-Proto', 'https');
proxyReq.setHeader('X-Forwarded-Proto', `http${tls ? 's' : ''}`);
},
],
},
Expand Down

0 comments on commit 9ade3e9

Please sign in to comment.