Fix csp directives for embed previews (#49155)
* Fix csp directives for embed previews
We set content security directives to allow for iframes on
dashboards. This list did not include 'self' so we can't actually host
an iframe pointing at our, well, self.
Embed previews work by just embedding an iframe with the dashboard and
this breaks if we don't allow iframes from our self.
* e2e test
---------
Co-authored-by:
Aleksandr Lesnenko <alxnddr@gmail.com>
Showing
- e2e/support/config.js 1 addition, 0 deletionse2e/support/config.js
- e2e/test/scenarios/embedding/embedding-reproductions.cy.spec.js 36 additions, 0 deletions...st/scenarios/embedding/embedding-reproductions.cy.spec.js
- src/metabase/server/middleware/security.clj 1 addition, 1 deletionsrc/metabase/server/middleware/security.clj
- test/metabase/server/middleware/security_test.clj 9 additions, 5 deletionstest/metabase/server/middleware/security_test.clj
Please register or sign in to comment