File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 3737 # to construct the OpenID Connect token request, as per:
3838 # http://openid.net/specs/openid-connect-core-1_0.html#TokenRequest
3939 internal ;
40+
41+ # Do not pass through body or headers from the client, this should be a net-new connection.
42+ # Some IdPs, like Microsoft Entra, will throw CORS errors if client headers are passed through.
43+ proxy_pass_request_headers off;
44+ proxy_pass_request_body off;
45+
4046 proxy_ssl_server_name on; # For SNI to the IdP
4147 proxy_set_header Content-Type "application/x-www-form-urlencoded" ;
4248 proxy_set_header Authorization $arg_secret_basic ;
4854 # use the proxy_ directives to construct the OpenID Connect token request, as per:
4955 # https://openid.net/specs/openid-connect-core-1_0.html#RefreshingAccessToken
5056 internal ;
57+
58+ # Do not pass through body or headers from the client, this should be a net-new connection.
59+ # Some IdPs, like Microsoft Entra, will throw CORS errors if client headers are passed through.
60+ proxy_pass_request_headers off;
61+ proxy_pass_request_body off;
62+
5163 proxy_ssl_server_name on; # For SNI to the IdP
5264 proxy_set_header Content-Type "application/x-www-form-urlencoded" ;
5365 proxy_set_header Authorization $arg_secret_basic ;
You can’t perform that action at this time.
0 commit comments