Skip to content

Commit b9faaed

Browse files
committed
fix csp problem
1 parent 8f118bb commit b9faaed

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ansible/roles/oauth2_proxy/templates/oauth2-proxy.cfg.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ trusted_proxy_ips = [ "127.0.0.1/32", "::1/128" ]
2020
code_challenge_method = "S256"
2121
skip_provider_button = true
2222
set_xauthrequest = true
23-
pass_authorization_header = true
23+
pass_authorization_header = false
2424
pass_user_headers = true
2525
pass_access_token = false
2626
skip_jwt_bearer_tokens = false

tests/oauth2-proxy-template.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ describe("management oauth2-proxy template", () => {
1919
expect(template).toContain('whitelist_domains = [ "{{ terrarium_manage_domain }}", "{{ terrarium_proxy_domain }}" ]');
2020
expect(template).toContain('trusted_proxy_ips = [ "127.0.0.1/32", "::1/128" ]');
2121
expect(template).toContain("skip_jwt_bearer_tokens = false");
22+
expect(template).toContain("pass_authorization_header = false");
23+
expect(template).not.toContain("pass_authorization_header = true");
2224
expect(template).not.toContain("cookie_domains");
2325
expect(template).not.toContain("terrarium_oauth2_proxy_cookie_domain");
2426
});

0 commit comments

Comments
 (0)