Svelte · Senior · Question 35 of 75

How does SvelteKit protect form actions from CSRF?

Explanation

In SvelteKit 3 trusted external origins are configured with csrf.trustedOrigins; paths.origin sets the public origin behind proxies.

Further reading

Problem with a question

Svelte · Senior · question 35

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz