
* migration of resource server from openstackid to its own project * migration of marketplace api * added api tests * added CORS middleware * added SecurityHTTPHeadersWriterMiddleware Change-Id: Ib3d02feeb1e756de73d380238a043a7ac1ec7ecc
37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php namespace App\Http;
|
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
class Kernel extends HttpKernel {
|
|
|
|
/**
|
|
* The application's global HTTP middleware stack.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $middleware = [
|
|
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
|
|
'Illuminate\Cookie\Middleware\EncryptCookies',
|
|
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
|
|
'Illuminate\Session\Middleware\StartSession',
|
|
'Illuminate\View\Middleware\ShareErrorsFromSession',
|
|
'App\Http\Middleware\VerifyCsrfToken',
|
|
'App\Http\Middleware\CORSMiddleware',
|
|
'App\Http\Middleware\SecurityHTTPHeadersWriterMiddleware',
|
|
];
|
|
|
|
/**
|
|
* The application's route middleware.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $routeMiddleware = [
|
|
'auth' => 'App\Http\Middleware\Authenticate',
|
|
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
|
|
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
|
|
'oauth2.protected' => 'App\Http\Middleware\OAuth2BearerAccessTokenRequestValidator',
|
|
'rate.limit' => 'App\Http\Middleware\RateLimitMiddleware',
|
|
'etags' => 'App\Http\Middleware\ETagsMiddleware',
|
|
];
|
|
|
|
} |