# Embed a Tableau workbook in a Cumulocity dashboard

**URL:** <https://community.cumulocity.com/t/embed-a-tableau-workbook-in-a-cumulocity-dashboard/7796>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [May 14, 2024, 10:48pm UTC](https://community.cumulocity.com/t/embed-a-tableau-workbook-in-a-cumulocity-dashboard/7796 "2024-05-14T22:48:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.gibbons](https://avatars.discourse-cdn.com/v4/letter/c/53a042/32.png) [@chris.gibbons](https://community.cumulocity.com/u/chris.gibbons)\
**Post date:** [May 14, 2024, 10:48pm UTC](https://community.cumulocity.com/t/embed-a-tableau-workbook-in-a-cumulocity-dashboard/7796/1 "2024-05-14T22:48:32Z")

</div>

#### _ **Product/components** used and **version/fix** level:_

Cumulocity (on-prem) 1018.0.201

#### _Detailed explanation of the problem:_

I’m wanting to embed a published Tableau chart/workbook using the HTML Widget.

Any suggestions for how to add the Content Security Policy? Is there a place this can be added via the Cumulocity UI?

Alternatively, we can create a widget and/or app for this - any specific tips for this?

#### _Error messages / **full error** message screenshot / **log** file:_

Browser console log

app.c87c242e98e7b83c4944.js:2 Refused to load the script ‘[https://tableauserver/javascripts/api/tableau.embedding.3.latest.min.js](https://tableauserver/javascripts/api/tableau.embedding.3.latest.min.js)’ because it violates the following Content Security Policy directive: “script-src ‘self’ \*.mapquestapi.com \*.bugherd.com \*.twitter.com \*.twimg.com \*.aptrinsic.com ‘unsafe-inline’ ‘unsafe-eval’ data:”. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.

#### _Question related to a **free trial** , or to a **production (customer)** instance?_

Customer Production instance

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [May 15, 2024, 9:54am UTC](https://community.cumulocity.com/t/embed-a-tableau-workbook-in-a-cumulocity-dashboard/7796/2 "2024-05-15T09:54:41Z")

</div>

Hi @chris.gibbons,

There is no option to set the CSP via UI.  
The CSP is baked into the UI build, so you would have to do your own UI build to adjust it.

You could e.g. create your own custom cockpit app, based on the default cockpit app, details on how to do it, could be found here: [Overview - Cumulocity IoT Guides](https://cumulocity.com/guides/web/overview/)  
Once you’ve created your own app, you should be able to adjust the default CSP in the `package.json`.

Regards,  
Tristan

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [November 11, 2024, 9:55am UTC](https://community.cumulocity.com/t/embed-a-tableau-workbook-in-a-cumulocity-dashboard/7796/3 "2024-11-11T09:55:07Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
