1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fixes for CORS

This commit is contained in:
David Bomba 2021-06-02 10:58:39 +10:00
parent 5b8b354afb
commit 82fcf55ab2
2 changed files with 1 additions and 14 deletions

View File

@ -101,7 +101,6 @@ class Kernel extends HttpKernel
'throttle:60,1',
'bindings',
'query_logging',
Cors::class,
],
'client' => [
EncryptCookies::class,
@ -112,23 +111,12 @@ class Kernel extends HttpKernel
VerifyCsrfToken::class,
SubstituteBindings::class,
QueryLogging::class,
Cors::class,
],
'shop' => [
'throttle:120,1',
'bindings',
'query_logging',
],
'livewire' => [
Cors::class,
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
ShareErrorsFromSession::class,
SubstituteBindings::class,
QueryLogging::class,
// VerifyCsrfToken::class,
],
];
/**
@ -197,6 +185,5 @@ class Kernel extends HttpKernel
Locale::class,
SubstituteBindings::class,
ContactAccount::class,
VerifyCsrfToken::class,
];
}

View File

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