Skip to content

Commit 17559fb

Browse files
author
Tomas Micko
committed
Update README
1 parent 8bab0bd commit 17559fb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,12 @@ on every load of the SPA. This function makes a decision based the query string
9191
);
9292
}
9393
```
94-
Note: This is just a simplified example. The timeout has to be cleared properly (before every refresh, or before logout).
94+
Note: This is just a simplified example. The timeout has to be cleared properly (before every refresh, or before logout).
95+
96+
## Cookie Security
97+
98+
- `SameSite=Strict` cookies are sent to APIs, which cannot be sent from malicious sites
99+
- to ensure that only precise whitelisted origins can send cookies to APIs, a `token-handler-version: 1` header is
100+
sent by this library on every request to the OAuth Agent. In cross-origin deployments this ensures that a CORS pre-flight
101+
request authorizes access. SPA developers may be required to send this header to token handler proxies as well (refer
102+
to the token handler proxy documentation for details).

0 commit comments

Comments
 (0)