Skip to content

Commit 061081f

Browse files
committed
docs: added note about AJAX/Fetch calls needing same-origin credentials
1 parent c754c1f commit 061081f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ Flags:
2929
The snake-case values, such as `SAML_PROXY_BACKEND_URL`, are the equivalent environment variables
3030
that can be set instead of passing configuration via the command-line.
3131

32+
## Note for AJAX/Fetch Operations
33+
34+
If the web application being protected behind this proxy makes AJAX/Fetch calls, then be sure
35+
to enable "same-origin" access for the credentials of those calls,
36+
as described [here](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials).
37+
38+
With that configuration in place, the AJAX/Fetch calls will leverage the same `token` cookie
39+
provided in response to the first authenticated page retrieval via the proxy.
40+
3241
## Building
3342

3443
With Go 1.11 or newer:

0 commit comments

Comments
 (0)