Fixed some cross-origin issues

This commit is contained in:
Alejandro Celaya
2016-07-05 19:08:34 +02:00
parent 431169eb8c
commit bd36c65a73
4 changed files with 15 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ return [
'name' => 'rest-authenticate',
'path' => '/rest/authenticate',
'middleware' => Rest\AuthenticateMiddleware::class,
'allowed_methods' => ['POST'],
'allowed_methods' => ['POST', 'OPTIONS'],
],
[
'name' => 'rest-create-shortcode',