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',
|
'name' => 'settings#getUserValue',
|
||||||
'url' => '/getuservalue',
|
'url' => '/getuservalue',
|
||||||
'verb' => 'GET'
|
'verb' => 'GET'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'noteApi#preflighted_cors',
|
||||||
|
'url' => '/api/v1/{path}',
|
||||||
|
'verb' => 'OPTIONS',
|
||||||
|
'requirements' => ['path' => '.+']
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user