Browse Source
Merge pull request #4463 from maschwanden/master
Daemon: Fix preflight CORS request handling
3.2.x
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
lib/jsonrpc.py
|
|
@ -58,6 +58,9 @@ class VerifyingJSONRPCServer(SimpleJSONRPCServer): |
|
|
|
# first, call the original implementation which returns |
|
|
|
# True if all OK so far |
|
|
|
if SimpleJSONRPCRequestHandler.parse_request(myself): |
|
|
|
# Do not authenticate OPTIONS-requests |
|
|
|
if myself.command.strip() == 'OPTIONS': |
|
|
|
return True |
|
|
|
try: |
|
|
|
self.authenticate(myself.headers) |
|
|
|
return True |
|
|
|