Skip to content

Commit c1cfba7

Browse files
committed
wip
1 parent 40c54b4 commit c1cfba7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Http/Request.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,15 @@ public function isSecured(): bool
227227
}
228228

229229

230+
/**
231+
* Is the request sent from the same origin?
232+
*/
233+
public function isSameSite(): bool
234+
{
235+
return isset($this->cookies['nette-samesite']);
236+
}
237+
238+
230239
/**
231240
* Is AJAX request?
232241
*/

0 commit comments

Comments
 (0)