-
I'm currently exploring the implementation of a new feature for the Redash app using an alternative backend. While attempting to make a request from the Redash frontend, I encountered the following error:
Interestingly, testing this API with Postman yielded successful results, and connecting to it from any other frontend also worked seamlessly. Hence, I suspect there might be a specific handling of Content Security Policy (CSP) within the Redash app that is causing this issue. Could you provide insights into how CSP is managed in the Redash app? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
CONTENT_SECURITY_POLICY = os.environ.get( |
Beta Was this translation helpful? Give feedback.
-
redash/redash/settings/__init__.py Line 114 in cd03da3 You have to set you request url in |
Beta Was this translation helpful? Give feedback.
This default config is
"default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; font-src 'self' data:; img-src 'self' http: https: data: blob:; object-src 'none'; frame-ancestors 'none'; frame-src redash.io;",