We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff1dd1 commit 8554653Copy full SHA for 8554653
README.md
@@ -75,6 +75,14 @@ stateless.header => env('STATELESS_HEADER', 'X-STATELESS-HEADER')
75
76
Danger: The key name separators should use `-` not `_` [according with this](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers).
77
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
86
### Real use case
87
88
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