From 5de65891c387490f6c272e9a9ee71b078dc31e5d Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 15 Jan 2025 14:45:58 +1100 Subject: [PATCH] Allow CORS for /plugin/ URLs (#8898) - Ref: https://github.com/inventree/inventree-order-history/issues/17#issuecomment-2591275055 --- src/backend/InvenTree/InvenTree/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/InvenTree/settings.py b/src/backend/InvenTree/InvenTree/settings.py index f365d9a8e5..68b52c9656 100644 --- a/src/backend/InvenTree/InvenTree/settings.py +++ b/src/backend/InvenTree/InvenTree/settings.py @@ -1206,7 +1206,7 @@ CORS_ALLOW_CREDENTIALS = get_boolean_setting( ) # Only allow CORS access to the following URL endpoints -CORS_URLS_REGEX = r'^/(api|auth|media|static)/.*$' +CORS_URLS_REGEX = r'^/(api|auth|media|plugin|static)/.*$' CORS_ALLOWED_ORIGINS = get_setting( 'INVENTREE_CORS_ORIGIN_WHITELIST',