Skip to content

Commit 306d598

Browse files
committed
Form: $crossOrigin is defined in descendant
1 parent 725c316 commit 306d598

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Application/UI/Form.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ class Form extends Nette\Forms\Form implements SignalReceiver
2020
/** @var array<callable(self): void> Occurs when form is attached to presenter */
2121
public $onAnchor = [];
2222

23-
/** @var bool */
24-
protected $crossOrigin = false;
25-
2623

2724
/**
2825
* Application form constructor.
@@ -95,19 +92,10 @@ public function isAnchored(): bool
9592
}
9693

9794

98-
/**
99-
* Disables CSRF protection using a SameSite cookie.
100-
*/
101-
public function allowCrossOrigin(): void
102-
{
103-
$this->crossOrigin = true;
104-
}
105-
106-
10795
/** @deprecated use allowCrossOrigin() */
10896
public function disableSameSiteProtection(): void
10997
{
110-
$this->crossOrigin = true;
98+
$this->allowCrossOrigin();
11199
}
112100

113101

0 commit comments

Comments
 (0)