Skip to content

Commit 8554653

Browse files
authored
Update README.md
1 parent dff1dd1 commit 8554653

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ stateless.header => env('STATELESS_HEADER', 'X-STATELESS-HEADER')
7575

7676
Danger: The key name separators should use `-` not `_` [according with this](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers).
7777

78+
You can customize the middleware for the `csrf-header` route. In some cases you may need some custom cors middleware for example:
79+
80+
```php
81+
stateless.middleware => [
82+
\Barryvdh\Cors\HandleCors::class,
83+
]
84+
```
85+
7886
### Real use case
7987

8088
Let's say you want to allow visitors to submit a newsletter form. You want also to protect your API with CSRF.

0 commit comments

Comments
 (0)