The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Embed Tableau

TODO: Pull subtitle into page object

The only thing I had to do to embed a tableau dashboard in a NextJS site was to call the iframe and append `:embed=y` to the URL like:

code_start_default_section code_end_default_section

I took all of them out except the `embed=y` and the dashboard still worked. As soon as I took embed out, I got errors like:

To protect your security, tableau.acebi.us will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.

And: Blank Screen and Error "Refused to display `

And

`tableau.example.com refused to connect` in Chrome

The embed also works with my authentication/authorization which was handled by OneLogin (I expect the built in auth would work too)

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Embed Tableau

-- p

The only thing I had to do to embed a tableau dashboard in a NextJS site was to call the iframe and append `:embed=y` to the URL like:

-- code/
-- jsx

<iframe
    width="1366"
    height="758"
    src="https://tableau.example.com/views/SomeThing/SomeThing?:embed=y"
></iframe>

-- /code

-- p

There were some other options that shoed up when I sniffed the iframe out from the javascript, they were:

-- code/
-- jsx

:embed=y&amp;:showVizHome=n&amp;:tabs=y&amp;:apiID=host0"

-- /code

-- p

I took all of them out except the `embed=y` and the dashboard still worked. As soon as I took embed out, I got errors like:

-- p

To protect your security, tableau.acebi.us will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.

-- p

And: Blank Screen and Error "Refused to display `<URL of View>` in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'" When Loading an Embedded View

-- p

And

-- p

`tableau.example.com refused to connect` in Chrome

-- p

The embed also works with my authentication/authorization which was handled by OneLogin (I expect the built in auth would work too)


-- categories
-- Miscellaneous

-- metadata
-- date: 2022-05-12 17:16:18
-- id: 2955bjly
-- status: scratch
-- type: post
-- SCRUBBED_NEO: false
-- site: aws