We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0747534 commit beb2728Copy full SHA for beb2728
1 file changed
src/Application/UI/Form.php
@@ -20,9 +20,6 @@ class Form extends Nette\Forms\Form implements SignalReceiver
20
/** @var array<callable(self): void> Occurs when form is attached to presenter */
21
public $onAnchor = [];
22
23
- /** @var bool */
24
- protected $crossOrigin = false;
25
-
26
27
/**
28
* Application form constructor.
@@ -95,19 +92,10 @@ public function isAnchored(): bool
95
92
}
96
93
97
94
98
- /**
99
- * Disables CSRF protection using a SameSite cookie.
100
- */
101
- public function allowCrossOrigin(): void
102
- {
103
- $this->crossOrigin = true;
104
- }
105
106
107
/** @deprecated use allowCrossOrigin() */
108
public function disableSameSiteProtection(): void
109
{
110
+ $this->allowCrossOrigin();
111
112
113
0 commit comments