Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSRF #4

Open
w2n1ck opened this issue Mar 18, 2020 · 0 comments
Open

CSRF #4

w2n1ck opened this issue Mar 18, 2020 · 0 comments

Comments

@w2n1ck
Copy link

w2n1ck commented Mar 18, 2020

我觉得生成的csrftoken可以用CookieCsrfTokenRepository存储在cookie中的,后端$_COOKIES['csrf_token'] == $_POST['csrf_token']进行校验;如果使用seession存储或者其他存储介质,如果后端存在多台服务器,没有做session同步的话就有问题了;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant