Merge pull request #5886 from turbo124/v5-develop

Fixes for CORS
This commit is contained in:
David Bomba 2021-06-02 10:02:55 +10:00 committed by GitHub
commit d9e923e978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 19 deletions

View File

@ -117,6 +117,15 @@ class Kernel extends HttpKernel
'bindings', 'bindings',
'query_logging', 'query_logging',
], ],
'livewire' => [
Cors::class,
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
ShareErrorsFromSession::class,
SubstituteBindings::class,
QueryLogging::class,
],
]; ];
/** /**

View File

@ -269,7 +269,7 @@ class BillingPortalPurchase extends Component
*/ */
protected function getPaymentMethods(ClientContact $contact): self protected function getPaymentMethods(ClientContact $contact): self
{ {
Auth::guard('contact')->login($contact); Auth::guard('contact')->login($contact, true);
$this->contact = $contact; $this->contact = $contact;

View File

@ -28,6 +28,6 @@ class VerifyCsrfToken extends Middleware
* @var array * @var array
*/ */
protected $except = [ protected $except = [
'livewire/message/*' // 'livewire/message/*'
]; ];
} }

View File

@ -58,7 +58,7 @@
"league/flysystem-cached-adapter": "^1.1", "league/flysystem-cached-adapter": "^1.1",
"league/fractal": "^0.17.0", "league/fractal": "^0.17.0",
"league/omnipay": "^3.1", "league/omnipay": "^3.1",
"livewire/livewire": "^2.0", "livewire/livewire": "^2.4",
"maennchen/zipstream-php": "^1.2", "maennchen/zipstream-php": "^1.2",
"nwidart/laravel-modules": "^8.0", "nwidart/laravel-modules": "^8.0",
"omnipay/paypal": "^3.0", "omnipay/paypal": "^3.0",

29
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "9bb3b4b805f812254484a3a28b503978", "content-hash": "407c398eefe5bab138b1d984a5116156",
"packages": [ "packages": [
{ {
"name": "asm/php-ansible", "name": "asm/php-ansible",
@ -103,16 +103,16 @@
}, },
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.183.9", "version": "3.183.10",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "3b3aafdceac4cb820e2ae65a8785e4d07db471a7" "reference": "3995354f4791f8ca85f5208325cef9065e471f3b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3b3aafdceac4cb820e2ae65a8785e4d07db471a7", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3995354f4791f8ca85f5208325cef9065e471f3b",
"reference": "3b3aafdceac4cb820e2ae65a8785e4d07db471a7", "reference": "3995354f4791f8ca85f5208325cef9065e471f3b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -187,9 +187,9 @@
"support": { "support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues", "issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.183.9" "source": "https://github.com/aws/aws-sdk-php/tree/3.183.10"
}, },
"time": "2021-05-28T18:28:19+00:00" "time": "2021-06-01T18:13:35+00:00"
}, },
{ {
"name": "bacon/bacon-qr-code", "name": "bacon/bacon-qr-code",
@ -5157,16 +5157,16 @@
}, },
{ {
"name": "php-http/discovery", "name": "php-http/discovery",
"version": "1.13.0", "version": "1.14.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-http/discovery.git", "url": "https://github.com/php-http/discovery.git",
"reference": "788f72d64c43dc361e7fcc7464c3d947c64984a7" "reference": "778f722e29250c1fac0bbdef2c122fa5d038c9eb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-http/discovery/zipball/788f72d64c43dc361e7fcc7464c3d947c64984a7", "url": "https://api.github.com/repos/php-http/discovery/zipball/778f722e29250c1fac0bbdef2c122fa5d038c9eb",
"reference": "788f72d64c43dc361e7fcc7464c3d947c64984a7", "reference": "778f722e29250c1fac0bbdef2c122fa5d038c9eb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5183,8 +5183,7 @@
"puli/composer-plugin": "1.0.0-beta10" "puli/composer-plugin": "1.0.0-beta10"
}, },
"suggest": { "suggest": {
"php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories", "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories"
"puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details."
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@ -5220,9 +5219,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/php-http/discovery/issues", "issues": "https://github.com/php-http/discovery/issues",
"source": "https://github.com/php-http/discovery/tree/1.13.0" "source": "https://github.com/php-http/discovery/tree/1.14.0"
}, },
"time": "2020-11-27T14:49:42+00:00" "time": "2021-06-01T14:30:21+00:00"
}, },
{ {
"name": "php-http/guzzle7-adapter", "name": "php-http/guzzle7-adapter",

View File

@ -67,7 +67,7 @@ return [
| |
*/ */
'middleware_group' => 'web', 'middleware_group' => 'livewire',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------