Chrome doesn't send cookies after redirect

后端 未结 3 1948
[愿得一人]
[愿得一人] 2021-01-02 18:28

In node.js (using Hapi framework) I\'m creating link for user to allow my app reading user account. Google handles that request and asks about giving permissions. Then Googl

3条回答
  •  天涯浪人
    2021-01-02 18:42

    This issue is caused by hapi-auth-cookie not dealing yet with isSameSite (new feature of Hapi). We can set it manually, eg.

    const server = new Hapi.Server(
        connections: {
            state: {
                isSameSite: 'Lax'
            }
        }
    );
    

    But please consider that, by default you have 'Strict' option, and in many cases you may not want to change that value.

提交回复
热议问题