From fec62379075d2e4bfe56790352143a1e2428626e Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 15 Jan 2022 12:27:36 +0700 Subject: [PATCH] add chrome-extension to CORS_ALLOWED_ORIGIN --- tubearchivist/config/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/config/settings.py b/tubearchivist/config/settings.py index 9999b7a..c1eb432 100644 --- a/tubearchivist/config/settings.py +++ b/tubearchivist/config/settings.py @@ -146,7 +146,7 @@ LOGOUT_REDIRECT_URL = "/login/" # Cors needed for browser 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) + [ "mode",