From 7140ea8f43a5fa8129e9c72c53d5b33a6713172c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:03:30 +1100 Subject: [PATCH] Allow CORS for /plugin/ URLs (#8898) (#8900) - Ref: https://github.com/inventree/inventree-order-history/issues/17#issuecomment-2591275055 (cherry picked from commit 5de65891c387490f6c272e9a9ee71b078dc31e5d) Co-authored-by: Oliver --- 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 59e11b5112..9bd426935c 100644 --- a/src/backend/InvenTree/InvenTree/settings.py +++ b/src/backend/InvenTree/InvenTree/settings.py @@ -1270,7 +1270,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',