mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
add chrome-extension to CORS_ALLOWED_ORIGIN
This commit is contained in:
parent
3df8f65db6
commit
fec6237907
@ -146,7 +146,7 @@ LOGOUT_REDIRECT_URL = "/login/"
|
|||||||
|
|
||||||
# Cors needed for browser extension
|
# Cors needed for browser extension
|
||||||
# background.js makes the request so HTTP_ORIGIN will be from extension
|
# background.js makes the request so HTTP_ORIGIN will be from extension
|
||||||
CORS_ALLOWED_ORIGIN_REGEXES = [r"moz-extension://*"]
|
CORS_ALLOWED_ORIGIN_REGEXES = [r"moz-extension://*", r"chrome-extension://*"]
|
||||||
|
|
||||||
CORS_ALLOW_HEADERS = list(default_headers) + [
|
CORS_ALLOW_HEADERS = list(default_headers) + [
|
||||||
"mode",
|
"mode",
|
||||||
|
Loading…
Reference in New Issue
Block a user