Skip to main content
5-Regular Member
September 27, 2022
Solved

Loss of cookie in an iframe

  • September 27, 2022
  • 1 reply
  • 942 views

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.

 

Best answer by CharlesJi

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

CharlesJi16-PearlAnswer
16-Pearl
October 18, 2022

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