Handle OPTION(CORS) calls to use the API in web apps. Issue #80

This commit is contained in:
Matias De lellis
2022-05-19 11:23:41 -03:00
parent a9d5db57d6
commit 25e83be493

View File

@@ -33,6 +33,12 @@ return ['resources' =>
'name' => 'settings#getUserValue',
'url' => '/getuservalue',
'verb' => 'GET'
],
[
'name' => 'noteApi#preflighted_cors',
'url' => '/api/v1/{path}',
'verb' => 'OPTIONS',
'requirements' => ['path' => '.+']
]
]
];