mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Add additional headers (#3062)
This commit is contained in:
parent
fd8242330e
commit
5e950ba5cd
@ -6,14 +6,14 @@ use Closure;
|
||||
|
||||
class Cors
|
||||
{
|
||||
|
||||
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
|
||||
return $next($request)
|
||||
->header('Access-Control-Allow-Origin', '*')
|
||||
->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS')
|
||||
->header('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type, X-Token-Auth, Authorization');
|
||||
->header('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type, X-Token-Auth, Authorization, X-API-TOKEN, X-API-SECRET');
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user