2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Allow CORS for /plugin/ URLs (#8898)

- Ref: https://github.com/inventree/inventree-order-history/issues/17#issuecomment-2591275055
This commit is contained in:
Oliver 2025-01-15 14:45:58 +11:00 committed by GitHub
parent c7e960728d
commit 5de65891c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1206,7 +1206,7 @@ CORS_ALLOW_CREDENTIALS = get_boolean_setting(
) )
# Only allow CORS access to the following URL endpoints # 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( CORS_ALLOWED_ORIGINS = get_setting(
'INVENTREE_CORS_ORIGIN_WHITELIST', 'INVENTREE_CORS_ORIGIN_WHITELIST',