Updated laravel-cors. Closes #1485
This commit is contained in:
committed by
Graham Campbell
parent
e8cbd81ad0
commit
4deff42aff
@@ -23,7 +23,6 @@ class Kernel extends HttpKernel
|
|||||||
protected $middleware = [
|
protected $middleware = [
|
||||||
'Fideloper\Proxy\TrustProxies',
|
'Fideloper\Proxy\TrustProxies',
|
||||||
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
|
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -40,6 +39,7 @@ class Kernel extends HttpKernel
|
|||||||
'Illuminate\Foundation\Http\Middleware\VerifyCsrfToken',
|
'Illuminate\Foundation\Http\Middleware\VerifyCsrfToken',
|
||||||
],
|
],
|
||||||
'api' => [
|
'api' => [
|
||||||
|
'Barryvdh\Cors\HandleCors',
|
||||||
'CachetHQ\Cachet\Http\Middleware\Acceptable',
|
'CachetHQ\Cachet\Http\Middleware\Acceptable',
|
||||||
'CachetHQ\Cachet\Http\Middleware\Timezone',
|
'CachetHQ\Cachet\Http\Middleware\Timezone',
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -25,8 +25,7 @@
|
|||||||
"alt-three/bus": "^1.0",
|
"alt-three/bus": "^1.0",
|
||||||
"alt-three/emoji": "^3.0",
|
"alt-three/emoji": "^3.0",
|
||||||
"alt-three/validator": "^1.4",
|
"alt-three/validator": "^1.4",
|
||||||
"asm89/stack-cors": "dev-master as 0.2.2",
|
"barryvdh/laravel-cors": "^0.8",
|
||||||
"barryvdh/laravel-cors": "^0.7.3",
|
|
||||||
"doctrine/dbal": "^2.5",
|
"doctrine/dbal": "^2.5",
|
||||||
"fideloper/proxy": "^3.1",
|
"fideloper/proxy": "^3.1",
|
||||||
"graham-campbell/binput": "^3.3",
|
"graham-campbell/binput": "^3.3",
|
||||||
|
|||||||
82
composer.lock
generated
82
composer.lock
generated
@@ -4,8 +4,8 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"hash": "74c779dc332906a864a316cc48fdb8c6",
|
"hash": "4679aa1d77fd3d0e6a4edcc6b72b2e31",
|
||||||
"content-hash": "d0ab20df55c42e4852db58b8a0804159",
|
"content-hash": "be811d8ee1ae07b63536110056584327",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "alt-three/badger",
|
"name": "alt-three/badger",
|
||||||
@@ -261,49 +261,6 @@
|
|||||||
],
|
],
|
||||||
"time": "2016-01-03 10:46:21"
|
"time": "2016-01-03 10:46:21"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "asm89/stack-cors",
|
|
||||||
"version": "dev-master",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/asm89/stack-cors.git",
|
|
||||||
"reference": "f76d3ff80f287dcdf18cec0855efd6787cc1c7a5"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/asm89/stack-cors/zipball/f76d3ff80f287dcdf18cec0855efd6787cc1c7a5",
|
|
||||||
"reference": "f76d3ff80f287dcdf18cec0855efd6787cc1c7a5",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=5.3.2",
|
|
||||||
"symfony/http-foundation": "~2.1|~3.0",
|
|
||||||
"symfony/http-kernel": "~2.1|~3.0"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-0": {
|
|
||||||
"Asm89\\Stack": "src/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Alexander",
|
|
||||||
"email": "iam.asm89@gmail.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Cross-origin resource sharing library and stack middleware",
|
|
||||||
"homepage": "https://github.com/asm89/stack-cors",
|
|
||||||
"keywords": [
|
|
||||||
"cors",
|
|
||||||
"stack"
|
|
||||||
],
|
|
||||||
"time": "2015-12-23 16:04:18"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "bacon/bacon-qr-code",
|
"name": "bacon/bacon-qr-code",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
@@ -348,27 +305,31 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "barryvdh/laravel-cors",
|
"name": "barryvdh/laravel-cors",
|
||||||
"version": "v0.7.3",
|
"version": "v0.8.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/barryvdh/laravel-cors.git",
|
"url": "https://github.com/barryvdh/laravel-cors.git",
|
||||||
"reference": "e4c4545879f5f00b8595a13fcf8e648b9bfdb40a"
|
"reference": "39975d7505757488f982ca132bcd02c704792fd8"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/barryvdh/laravel-cors/zipball/e4c4545879f5f00b8595a13fcf8e648b9bfdb40a",
|
"url": "https://api.github.com/repos/barryvdh/laravel-cors/zipball/39975d7505757488f982ca132bcd02c704792fd8",
|
||||||
"reference": "e4c4545879f5f00b8595a13fcf8e648b9bfdb40a",
|
"reference": "39975d7505757488f982ca132bcd02c704792fd8",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"asm89/stack-cors": "0.2.x",
|
"illuminate/support": "5.1.x|5.2.x",
|
||||||
"illuminate/support": "~5.0.14|5.1.x|5.2.x",
|
"php": ">=5.5.9",
|
||||||
"php": ">=5.4.0"
|
"symfony/http-foundation": "~2.7|~3.0",
|
||||||
|
"symfony/http-kernel": "~2.7|~3.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^5.2"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "0.7-dev"
|
"dev-master": "0.8-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -393,7 +354,7 @@
|
|||||||
"crossdomain",
|
"crossdomain",
|
||||||
"laravel"
|
"laravel"
|
||||||
],
|
],
|
||||||
"time": "2015-12-20 20:32:17"
|
"time": "2016-02-11 18:38:09"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "christian-riesen/base32",
|
"name": "christian-riesen/base32",
|
||||||
@@ -5137,18 +5098,9 @@
|
|||||||
"time": "2016-02-02 13:44:19"
|
"time": "2016-02-02 13:44:19"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"aliases": [
|
"aliases": [],
|
||||||
{
|
|
||||||
"alias": "0.2.2",
|
|
||||||
"alias_normalized": "0.2.2.0",
|
|
||||||
"version": "9999999-dev",
|
|
||||||
"package": "asm89/stack-cors"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"stability-flags": {
|
"stability-flags": [],
|
||||||
"asm89/stack-cors": 20
|
|
||||||
},
|
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
|
|||||||
@@ -10,37 +10,20 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Laravel CORS Defaults
|
| Laravel CORS
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The defaults are the default values applied to all the paths that match,
|
| allowedOrigins, allowedHeaders and allowedMethods can be set to array('*')
|
||||||
| unless overridden in a specific URL configuration.
|
| to accept any value.
|
||||||
| If you want them to apply to everything, you must define a path with *.
|
|
||||||
|
|
|
||||||
| allowedOrigins, allowedHeaders and allowedMethods can be set to ['*']
|
|
||||||
| to accept any value, the allowed methods however have to be explicitly listed.
|
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'defaults' => [
|
'supportsCredentials' => false,
|
||||||
'supportsCredentials' => true,
|
'allowedOrigins' => ['*'],
|
||||||
'allowedOrigins' => ['*'],
|
'allowedHeaders' => ['X-Cachet-Token'],
|
||||||
'allowedHeaders' => [],
|
'allowedMethods' => ['*'],
|
||||||
'allowedMethods' => [],
|
'exposedHeaders' => [],
|
||||||
'exposedHeaders' => [],
|
'maxAge' => 3600,
|
||||||
'maxAge' => 0,
|
'hosts' => [],
|
||||||
'hosts' => [],
|
|
||||||
],
|
|
||||||
|
|
||||||
'paths' => [
|
|
||||||
'api/v1/*' => [
|
|
||||||
'allowedOrigins' => [],
|
|
||||||
'allowedHeaders' => ['X-Cachet-Token'],
|
|
||||||
'allowedMethods' => ['*'],
|
|
||||||
'maxAge' => 3600,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user