Cookie Use When Site Framed In

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

Cookie Use When Site Framed In

Post by caseywhite »

Hi,

We have an application written outside of LANSA running on one domain that frames in some WAM pages. The domains do not match. Eg. *.app1.com and *.app2.com. In the latest version of Chrome it appears it enforces that unless the SameSite=none is returned with the Set-Cookie header then the cookie won't be stored and therefore is not passed back to the WAM. This same issue is in Edge. Firefox is okay.

My question is can I modify the Set-Cookie header that is returned by LANSA? If so, how do I do this? If I can't can the framing application do something to tell the browser to accept the cookie and pass it to the WAM?
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Cookie Use When Site Framed In

Post by Dino »

Hi Casey

If you are running in IBM, have you tried to set the header in the apache configuration (httpd.conf) using the add or append?

https://stackoverflow.com/questions/541 ... figuration
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

Re: Cookie Use When Site Framed In

Post by caseywhite »

Dino. I got it to work using the following Apache config.

Header always edit Set-Cookie ^(.*)$ $1;Secure;SameSite=None

Thanks for your tip.
Post Reply