This repository was archived by the owner on Oct 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments