File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments