What is the proper syntax to set the SameSite attributes to SameSite=None; Secure in a netlify.toml?
We are getting cross-site request errors between ours and .imagekit.io/ for delivering images that are fetched here on Netlify and transformed/optimized at ImageKit and then sent to the client.
The effected cookies:
Name
Domain & Path
_gcl_au
.imagekit.io/
_gid
.imagekit.io/
_ga_WQGX7PLP73
.imagekit.io/
_ga
.imagekit.io/
_uetsid
.imagekit.io/
_uetvid
.imagekit.io/
I appreciate your help in advance – esp. being this is an area I am not to speed with
Same Site is a cookie attribute. It’s supposed to be set with a set-cookie header, it’s not a header itself. But I don’t think you’re doing what you think you’re. Mind sharing your site so we can see the issue?
Thank you, I am aware that its an attribute headers setting: Set-Cookie.
The question is how to properly set this in the netlfy.toml – not sure what ==value should be/is-correct and should there be a dot prefexing imagekit.io as the response shows; i.e imagekit.io ??
Using the following two cookies, would this be correct?
Note: No need to send site info & I don’t want to send up the wrong Netlify formatting/settings – there are many stake-holders accessing the staging site over the weekend but this header policy needs to be implemented asap.