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
7004ce75
...
7004ce75eaaad7c178ee461cccec28e2f01a67a1
authored
2022-06-08 16:01:50 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
e1a8415d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
83 deletions
composer.json
composer.lock
config/cors.php
composer.json
View file @
7004ce7
...
...
@@ -8,8 +8,8 @@
"php"
:
"^7.3|^8.0"
,
"ext-bcmath"
:
"*"
,
"ext-json"
:
"*"
,
"barryvdh/laravel-cors"
:
"^3.0"
,
"fideloper/proxy"
:
"^4.4"
,
"fruitcake/laravel-cors"
:
"^2.0"
,
"godruoyi/php-snowflake"
:
"^1.1"
,
"guzzlehttp/guzzle"
:
"^7.0.1"
,
"laravel/framework"
:
"^8.40"
,
...
...
composer.lock
View file @
7004ce7
...
...
@@ -4,20 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "
e28041a4bc9847dee62a3829f3824c85
",
"content-hash": "
a4adabd22880255ff5fe7f498b6ed126
",
"packages": [
{
"name": "
asm89/stack
-cors",
"version": "v
2.1.1
",
"name": "
barryvdh/laravel
-cors",
"version": "v
3.0.0
",
"source": {
"type": "git",
"url": "https://github.com/
asm89/stack
-cors.git",
"reference": "7
3e5b88775c64ccc0b84fb60836b30dc9d92ac4a
"
"url": "https://github.com/
fruitcake/laravel
-cors.git",
"reference": "7
c036ec08972d8d5d9db637e772af6887828faf5
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/
asm89/stack-cors/zipball/73e5b88775c64ccc0b84fb60836b30dc9d92ac4a
",
"reference": "7
3e5b88775c64ccc0b84fb60836b30dc9d92ac4a
",
"url": "https://api.github.com/repos/
fruitcake/laravel-cors/zipball/7c036ec08972d8d5d9db637e772af6887828faf5
",
"reference": "7
c036ec08972d8d5d9db637e772af6887828faf5
",
"shasum": "",
"mirrors": [
{
...
...
@@ -27,23 +27,31 @@
]
},
"require": {
"php": "^7.2|^8.0",
"symfony/http-foundation": "^4|^5|^6",
"symfony/http-kernel": "^4|^5|^6"
"fruitcake/php-cors": "^1.2",
"illuminate/contracts": "^6|^7|^8|^9",
"illuminate/support": "^6|^7|^8|^9",
"php": "^7.4|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^7|^9",
"laravel/framework": "^6|^7.24|^8",
"orchestra/testbench-dusk": "^4|^5|^6|^7",
"phpunit/phpunit": "^9",
"squizlabs/php_codesniffer": "^3.5"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.1-dev"
"dev-master": "3.0-dev"
},
"laravel": {
"providers": [
"Fruitcake\\Cors\\CorsServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"
Asm89\\Stack
\\": "src/"
"
Fruitcake\\Cors
\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
...
...
@@ -52,21 +60,36 @@
],
"authors": [
{
"name": "Alexander",
"email": "iam.asm89@gmail.com"
"name": "Fruitcake",
"homepage": "https://fruitcake.nl"
},
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "Cross-origin resource sharing library and stack middleware",
"homepage": "https://github.com/asm89/stack-cors",
"description": "Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application",
"keywords": [
"api",
"cors",
"stack"
"crossdomain",
"laravel"
],
"support": {
"issues": "https://github.com/
asm89/stack
-cors/issues",
"source": "https://github.com/
asm89/stack-cors/tree/v2.1.1
"
"issues": "https://github.com/
fruitcake/laravel
-cors/issues",
"source": "https://github.com/
fruitcake/laravel-cors/tree/v3.0.0
"
},
"time": "2022-01-18T09:12:03+00:00"
"funding": [
{
"url": "https://fruitcake.nl",
"type": "custom"
},
{
"url": "https://github.com/barryvdh",
"type": "github"
}
],
"time": "2022-02-23T14:53:22+00:00"
},
{
"name": "brick/math",
...
...
@@ -600,17 +623,17 @@
"time": "2020-10-22T13:48:01+00:00"
},
{
"name": "fruitcake/
laravel
-cors",
"version": "v
2
.2.0",
"name": "fruitcake/
php
-cors",
"version": "v
1
.2.0",
"source": {
"type": "git",
"url": "https://github.com/fruitcake/
laravel
-cors.git",
"reference": "
783a74f5e3431d7b9805be8afb60fd0a8f743534
"
"url": "https://github.com/fruitcake/
php
-cors.git",
"reference": "
58571acbaa5f9f462c9c77e911700ac66f446d4e
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fruitcake/
laravel-cors/zipball/783a74f5e3431d7b9805be8afb60fd0a8f743534
",
"reference": "
783a74f5e3431d7b9805be8afb60fd0a8f743534
",
"url": "https://api.github.com/repos/fruitcake/
php-cors/zipball/58571acbaa5f9f462c9c77e911700ac66f446d4e
",
"reference": "
58571acbaa5f9f462c9c77e911700ac66f446d4e
",
"shasum": "",
"mirrors": [
{
...
...
@@ -620,26 +643,18 @@
]
},
"require": {
"asm89/stack-cors": "^2.0.1",
"illuminate/contracts": "^6|^7|^8|^9",
"illuminate/support": "^6|^7|^8|^9",
"php": ">=7.2"
"php": "^7.4|^8.0",
"symfony/http-foundation": "^4.4|^5.4|^6"
},
"require-dev": {
"laravel/framework": "^6|^7.24|^8",
"orchestra/testbench-dusk": "^4|^5|^6|^7",
"phpunit/phpunit": "^6|^7|^8|^9",
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9",
"squizlabs/php_codesniffer": "^3.5"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.1-dev"
},
"laravel": {
"providers": [
"Fruitcake\\Cors\\CorsServiceProvider"
]
"dev-main": "1.1-dev"
}
},
"autoload": {
...
...
@@ -657,20 +672,20 @@
"homepage": "https://fruitcake.nl"
},
{
"name": "Barry
vd. Heuvel
",
"name": "Barry
vdh
",
"email": "barryvdh@gmail.com"
}
],
"description": "Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application",
"description": "Cross-origin resource sharing library for the Symfony HttpFoundation",
"homepage": "https://github.com/fruitcake/php-cors",
"keywords": [
"api",
"cors",
"
crossdomain
",
"
laravel
"
"
laravel
",
"
symfony
"
],
"support": {
"issues": "https://github.com/fruitcake/
laravel
-cors/issues",
"source": "https://github.com/fruitcake/
laravel-cors/tree/v2
.2.0"
"issues": "https://github.com/fruitcake/
php
-cors/issues",
"source": "https://github.com/fruitcake/
php-cors/tree/v1
.2.0"
},
"funding": [
{
...
...
@@ -682,7 +697,7 @@
"type": "github"
}
],
"time": "2022-02-2
3T14:25:13
+00:00"
"time": "2022-02-2
0T15:07:15
+00:00"
},
{
"name": "godruoyi/php-snowflake",
...
...
config/cors.php
deleted
100644 → 0
View file @
e1a8415
<?php
return
[
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/
'paths'
=>
[
'api/*'
,
'release/*'
,
'sanctum/csrf-cookie'
],
'allowed_methods'
=>
[
'*'
],
'allowed_origins'
=>
[
'*'
],
'allowed_origins_patterns'
=>
[],
'allowed_headers'
=>
[
'*'
],
'exposed_headers'
=>
[],
'max_age'
=>
0
,
'supports_credentials'
=>
false
,
];
Please
register
or
sign in
to post a comment