mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Handle OPTION(CORS) calls to use the API in web apps. Issue #80
This commit is contained in:
@@ -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' => '.+']
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user