Skip to content

Commit 71fed62

Browse files
committed
add missing cors config
1 parent 203ca19 commit 71fed62

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

config/cors.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Laravel CORS
7+
|--------------------------------------------------------------------------
8+
|
9+
10+
| allowedOrigins, allowedHeaders and allowedMethods can be set to array('*')
11+
| to accept any value, the allowed methods however have to be explicitly listed.
12+
|
13+
*/
14+
'supportsCredentials' => false,
15+
'allowedOrigins' => ['*'],
16+
'allowedHeaders' => ['*'],
17+
'allowedMethods' => ['GET', 'POST', 'PUT', 'DELETE'],
18+
'exposedHeaders' => [],
19+
'maxAge' => 0,
20+
'hosts' => [],
21+
];
22+

0 commit comments

Comments
 (0)