Skip to content

Commit 3a9b3bc

Browse files
committed
Update readme
1 parent 8b9a8c1 commit 3a9b3bc

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,28 +67,6 @@ $cors->isCorsRequest(Request $request);
6767
$cors->isPreflightRequest(Request $request);
6868
```
6969

70-
## Example: using the stack middleware
71-
72-
```php
73-
<?php
74-
75-
use Fruitcake\Cors\Cors;
76-
77-
$app = new Cors($app, [
78-
// you can use ['*'] to allow any headers
79-
'allowedHeaders' => ['x-allowed-header', 'x-other-allowed-header'],
80-
// you can use ['*'] to allow any methods
81-
'allowedMethods' => ['DELETE', 'GET', 'POST', 'PUT'],
82-
// you can use ['*'] to allow requests from any origin
83-
'allowedOrigins' => ['localhost'],
84-
// you can enter regexes that are matched to the origin request header
85-
'allowedOriginsPatterns' => ['/localhost:\d/'],
86-
'exposedHeaders' => false,
87-
'maxAge' => false,
88-
'supportsCredentials' => false,
89-
]);
90-
```
91-
9270
## License
9371

9472
Released under the MIT License, see [LICENSE](LICENSE).

0 commit comments

Comments
 (0)