Skip to main content
Sep 27, 2022 6:56 AM UTC
Solved

Loss of cookie in an iframe

Hello,

I develop a thingworx application and our application is in a site that publishes us as an iframe.

 

But in this way, the cookies do not work anymore. Indeed, the domain name on my browser is no longer the one of the Thingworx application. And I have the impression that it does not fit anymore.

 

Is it possible to configure the cookie domain name so that it works as an iframe?

 

Thank you for your help.

 

CharlesJiAnswer
Oct 18, 2022 6:03 AM UTC

Hi @RD_9924398 

You might need

SameSite = None

parameter in order to pass cookies through iFrames.

 

Refer to the following article for more details:

https://www.ptc.com/en/support/article/cs322995

1 reply

CharlesJiAnswer
Oct 18, 2022 6:03 AM UTC

Hi @RD_9924398 

You might need

SameSite = None

parameter in order to pass cookies through iFrames.

 

Refer to the following article for more details:

https://www.ptc.com/en/support/article/cs322995