SameSite Cookie via .htaccess file

MalcolmF
New Member
4 0 0

Hello! Is that possible that I face the same issue with iPhone OS 14_6? Your snippet has successfully solved the/my problems with previous versions.

0 Likes
Jason27
Shopify Partner
78 1 25

Hi, I'm not aware of any issue with the latest IOS, but I haven't tested. Here's an updated script that should target the new mobile device OS. Can you test it out and let us know the results? Will it break compatibility with devices before 14_6?

 

<If "%{HTTP_USER_AGENT} !~ /(iPhone; CPU iPhone OS 1[0-4]|iPad; CPU OS 1[0-4]|iPod touch; CPU iPhone OS 1[0-4]|Macintosh; Intel Mac OS X.*Version\x2F1[0-3].*Safari|Macintosh;.*Mac OS X 10_14.* AppleWebKit.*Version\x2F1[0-3].*Safari)/i">
    Header edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure
</If>

 

MalcolmF
New Member
4 0 0

Thank you. I try it and get back to you with the results.

0 Likes
MalcolmF
New Member
4 0 0

Hello! It turned out that it wasn't simply 14_6 it is Google Search App on IOS. The problematic user agents

Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/170.0.386351093 Mobile/15E148 Safari/604.1

are solved as

"Google Search App 170 on iOS 14.6 Apple iPhone"

Probably because it is some kind of frame?

0 Likes
Jason27
Shopify Partner
78 1 25

Well the script above should cover "CPU iPhone OS 14" - can you tell us if you installed it and it is working correctly for all devices? 

0 Likes
MalcolmF
New Member
4 0 0

Yes, I confirm that I have installed it and it is working well for almost all iOS 14_6 devices, except for "Google Search App 170 on iOS 14.6 Apple iPhone".

0 Likes