mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
Merge pull request #4463 from maschwanden/master
Daemon: Fix preflight CORS request handling
This commit is contained in:
commit
f24a449d37
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ class VerifyingJSONRPCServer(SimpleJSONRPCServer):
|
||||||
# first, call the original implementation which returns
|
# first, call the original implementation which returns
|
||||||
# True if all OK so far
|
# True if all OK so far
|
||||||
if SimpleJSONRPCRequestHandler.parse_request(myself):
|
if SimpleJSONRPCRequestHandler.parse_request(myself):
|
||||||
|
# Do not authenticate OPTIONS-requests
|
||||||
|
if myself.command.strip() == 'OPTIONS':
|
||||||
|
return True
|
||||||
try:
|
try:
|
||||||
self.authenticate(myself.headers)
|
self.authenticate(myself.headers)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Reference in a new issue