CSP Error
I am building a ddx brick in DOMO. When I am editing the card, and I click "Run," everything functions fine and works correctly. However, when I click "Save and Finish," the brick/table loads all of the Column Headers but none of the table cells, and regardless of whether or not I refresh the page, the table cells do not load. When I inspected the console, I found the following error:
"[Report Only] Refused to frame '…' because an ancestor violates the following Content Security Policy directive: "frame-ancestors self:".
What is strange about this error is that my card used to work fine but, after making changes to the javascript portion of my code, the card stopped working. I know that CSP errors can be triggered by introducing external sources, however, I believe I did not do as such. Can someone explain to me how CSP errors work and possible ways I can troubleshoot the one I am getting? Thanks.
Answers
-
@Jazeppi sometimes I notice bugs in the Domo bricks that require me to just start over. I would try re making the brick and make sure it works and then make your changes to the JS code one step at a time by commenting it out and see if there is a particular section causing the bug.
**If this answer solved your problem be sure to like it and accept it as a solution!
0 -
@Jazeppi I ran into a similar issue and I kept running into CSP violation errors.
It appears that DOMO only supports CDN links from two of the major CDN providers. You may be able to get additional sites whitelisted, but as far as I can tell, when working with Bricks, the DOMO team has to add the sites on their end. Here is what I found.
Using a CDN (Content Delivery Network)Use a CDN to pull in your favorite libraries and frameworks (jQuery, d3, Vega, Phoenix, etc.)
I switched out my script and style tags that were giving me issues and it resolved my issues. I hope this helps.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive