Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 6f2a7d3

Browse files
committed
feat: update cors config
1 parent 10556b2 commit 6f2a7d3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/cors.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
| Configures the Access-Control-Allow-Origin CORS header. Possible values:
1010
|
1111
| * String - set origin to a specific origin. For example if
12-
| you set it to 'http://example.com' only requests from
13-
| 'http://example.com' will be allowed.
12+
| you set it to "http://example.com" only requests from
13+
| "http://example.com" will be allowed.
1414
|
1515
| * RegExp - set origin to a regular expression pattern which will be
1616
| used to test the request origin. If it's a match, the request origin
1717
| will be reflected. For example the pattern /example\.com$/ will reflect
18-
| any request that is coming from an origin ending with 'example.com'.
18+
| any request that is coming from an origin ending with "example.com".
1919
|
2020
| * Array - set origin to an array of valid origins. Each origin can be a String
21-
| or a RegExp. For example ['http://example1.com', /\.example2\.com$/] will
22-
| accept any request from 'http://example1.com' or from
23-
| a subdomain of 'example2.com'.
21+
| or a RegExp. For example ["http://example1.com", /\.example2\.com$/] will
22+
| accept any request from "http://example1.com" or from
23+
| a subdomain of "example2.com".
2424
|
2525
| * Function - set origin to a function implementing some custom
2626
| logic. The function takes the request origin as the first parameter

0 commit comments

Comments
 (0)