cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Embed mashup in iFrame

Ju
10-Marble
10-Marble

Embed mashup in iFrame

Hello,

 

I want to embed in another website a mashup as iframe.

I have done the configuration like explained in the help :

https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx%2FHelp%2FComposer%2FSecurity%2FAllowingEmbeddedMashupsiniFrames.html

In the filter "ClickjackFilterWhiteList", I have added domain : http://aa.bb.fr

But it's not working...

 

With Postman, when I do a get on my url:

http://xxx/Thingworx/Mashups/TEST_VIEW?appKey=xxx&x-thingworx-session=true

I can see the headers:

Content-Security-Policy : frame-src http://aa.bb.fr

Content-Security-Policy : frame-ancestors http://aa.bb.fr

X-Frame-Options : ALLOW-FROM http://aa.bb.fr

So, I guess my config in web.xml is ok.

 

In the browser, when I enter my url :

http://xxx/Thingworx/Mashups/TEST_VIEW?appKey=xxx&x-thingworx-session=true

The page load but is redirect to url :

http://xxx/Thingworx/Runtime/index.html#mashup=TEST_VIEW&appKey=xxx&x-thingworx-session=true

I can see in the console that CSP (content-security-policy) are not set here. Just the default :

Content-Security-Policy: frame-ancestors 'self'
 
Any idea ? Thanks for help.
5 REPLIES 5
slangley
23-Emerald II
(To:Ju)

Hi @Ju

 

Here is an article that may apply to your situation.  Please check it out and let us know if you still have issues.

 

Regards.

 

--Sharon

 

 

Ju
10-Marble
10-Marble
(To:slangley)

Hi,

thanks for the link. We did several tests but not this one.

The project is paused but I will try to do this test later.

slangley
23-Emerald II
(To:slangley)

Hi @Ju

 

Did you get a chance to check the article previously provided?  If if helped to solve your issue, please mark the appropriate response as the Accepted Solution for the benefit of others with the same issue.

 

Regards.

 

--Sharon

Ju
10-Marble
10-Marble
(To:slangley)

For information, a colleague tried it, it doesn't work.

Regards

slangley
23-Emerald II
(To:slangley)

Hi @Ju

 

Are you getting any errors?  Have you tried running Dev tools (F12) in Chrome to track down the cause of the issue?

 

Regards.

 

--Sharon

Top Tags