How to set SameSite attribute to 'None; Secure' in Rails3.1.12 and Ruby1.9.3

前端 未结 5 651
逝去的感伤
逝去的感伤 2021-01-05 02:31

A cookie associated with a cross-site resource at https://example.com/ was set without the SameSite attribute. It has been blocked, as Chrome now only delivers

5条回答
  •  醉酒成梦
    2021-01-05 03:24

    The way to set custom headers is to add the line below to your controller action:

    response.headers['Set-Cookie'] = 'Secure;SameSite=None'.

提交回复
热议问题