fix: update referrer policy to same-origin for CSRF protection
This commit is contained in:
parent
5b6bc01687
commit
3d3330bcbf
1 changed files with 5 additions and 1 deletions
|
|
@ -12,7 +12,11 @@
|
|||
|
||||
<svelte:head>
|
||||
<title>Sign in · BottleCRM</title>
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
<!-- same-origin, not no-referrer: under no-referrer the browser sends
|
||||
`Origin: null` on the form POST, and SvelteKit's CSRF check refuses it
|
||||
as cross-site (403). same-origin still keeps the token in this URL out of
|
||||
any Referer sent to another site. -->
|
||||
<meta name="referrer" content="same-origin" />
|
||||
</svelte:head>
|
||||
|
||||
<div class="v2-root v2-auth">
|
||||
|
|
|
|||
Loading…
Reference in a new issue