Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
87a209a7
...
87a209a7d514a156fd066c9157a69b8139d6d4d3
authored
2022-06-08 16:22:51 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
cdd22707
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
config/cors.php
config/cors.php
0 → 100644
View file @
87a209a
<?php
return
[
/*
|--------------------------------------------------------------------------
| Laravel CORS Options
|--------------------------------------------------------------------------
|
| The allowed_methods and allowed_headers options are case-insensitive.
|
| You don't need to provide both allowed_origins and allowed_origins_patterns.
| If one of the strings passed matches, it is considered a valid origin.
|
| If ['*'] is provided to allowed_methods, allowed_origins or allowed_headers
| all methods / origins / headers are allowed.
|
*/
/*
* You can enable CORS for 1 or multiple paths.
* Example: ['api/*']
*/
'paths'
=>
[
'api/*'
,
'release/*'
],
/*
* Matches the request method. `['*']` allows all methods.
*/
'allowed_methods'
=>
[
'*'
],
/*
* Matches the request origin. `['*']` allows all origins. Wildcards can be used, eg `*.mydomain.com`
*/
'allowed_origins'
=>
[
'*'
],
/*
* Patterns that can be used with `preg_match` to match the origin.
*/
'allowed_origins_patterns'
=>
[],
/*
* Sets the Access-Control-Allow-Headers response header. `['*']` allows all headers.
*/
'allowed_headers'
=>
[
'*'
],
/*
* Sets the Access-Control-Expose-Headers response header with these headers.
*/
'exposed_headers'
=>
[],
/*
* Sets the Access-Control-Max-Age response header when > 0.
*/
'max_age'
=>
0
,
/*
* Sets the Access-Control-Allow-Credentials header.
*/
'supports_credentials'
=>
false
,
];
Please
register
or
sign in
to post a comment