Skip to content

Commit 4aa67a2

Browse files
committed
update cors.php
1 parent d34034e commit 4aa67a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config/cors.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@
1919

2020
'allowed_methods' => ['*'],
2121

22-
'allowed_origins' => ['*', 'http://127.0.0.1:8000/', 'http://127.0.0.1:8000', 'http://localhost:3000/', 'http://localhost:3000'],
22+
'allowed_origins' => [],
23+
// 'allowed_origins' => ['https://www.salamlang.ir/', 'https://salamlang.ir/', 'https://editor.salamlang.ir/', 'http://127.0.0.1:8000/', 'http://127.0.0.1:8000', 'http://localhost:3000/', 'http://localhost:3000'],
2324

24-
'allowed_origins_patterns' => [],
25+
'allowed_origins_patterns' => ['/^https?:\/\/(.*\.)?salamlang\.ir$/'],
2526

2627
'allowed_headers' => ['*'],
2728

2829
'exposed_headers' => [],
2930

3031
'max_age' => 0,
3132

32-
'supports_credentials' => false,
33+
'supports_credentials' => true,
3334

3435
];

0 commit comments

Comments
 (0)