Skip to content

Solved Cookie token creation for requests#549

Open
stijnpotters1 wants to merge 3 commits into
masterfrom
fix/open-project-forbidden
Open

Solved Cookie token creation for requests#549
stijnpotters1 wants to merge 3 commits into
masterfrom
fix/open-project-forbidden

Conversation

@stijnpotters1

Copy link
Copy Markdown
Contributor

Server (CsrfCookieFilter) → Set-Cookie: XSRF-TOKEN → browser stores it
browser (api.ts) → reads cookie, sets header → X-XSRF-TOKEN on POST
Server (CsrfFilter) → header == cookie? → yes → allow

The reason the filter was needed is that without it the server never issued the cookie in the first place, so the frontend had nothing to read and copy onto the request. The filter supplies the token (via a response cookie) and the frontend is what actually attaches it to requests.

This also directly solved issue #548

Comment thread src/main/frontend/.gitignore Outdated
Comment thread src/main/frontend/environment/development.ts Outdated
Comment thread src/main/java/org/frankframework/flow/common/config/SecurityChainConfigurer.java Outdated
@stijnpotters1 stijnpotters1 requested a review from Matthbo June 15, 2026 11:24
@sonarqubecloud

sonarqubecloud Bot commented Jun 15, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite palette loading due to frankdoc json response Import and add project results in 403 forbidden

2 participants