mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 19:04:36 -04:00
Add additional headers (#3062)
This commit is contained in:
parent
fd8242330e
commit
5e950ba5cd
@ -6,14 +6,14 @@ use Closure;
|
|||||||
|
|
||||||
class Cors
|
class Cors
|
||||||
{
|
{
|
||||||
|
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
|
|
||||||
return $next($request)
|
return $next($request)
|
||||||
->header('Access-Control-Allow-Origin', '*')
|
->header('Access-Control-Allow-Origin', '*')
|
||||||
->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS')
|
->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…
x
Reference in New Issue
Block a user