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

✨ added CSRF attack detection #2

Merged
merged 1 commit into from Sep 18, 2022
Merged

✨ added CSRF attack detection #2

merged 1 commit into from Sep 18, 2022

Conversation

ghost
Copy link

@ghost ghost commented Sep 14, 2022

No description provided.

@ghost
Copy link
Author

ghost commented Sep 15, 2022

Oh neat, this also has the added benefit, that refreshing the "/api/discord/callback" page, right after authorization, won't send any additional requests to Discord and just fail. Should I add a note to the comments or possibly even adjust the error handling, so it silently rejects the request instead of claiming it was a CSRF attack?

@KrishGarg
Copy link
Owner

Yeah silently rejecting the request should be fine.

@ghost
Copy link
Author

ghost commented Sep 16, 2022

Alright, I think this is reasonably silent now. I'll adjust the clean branches for you too, I just need to set up my dev environment first.

@KrishGarg
Copy link
Owner

It's fine, I can adjust the clean branch.
Thank you very much for the help!

@KrishGarg KrishGarg closed this Sep 18, 2022
@KrishGarg KrishGarg reopened this Sep 18, 2022
@KrishGarg KrishGarg merged commit a556e5f into KrishGarg:master Sep 18, 2022
@KrishGarg
Copy link
Owner

By the way, for the future, we can just copy paste the index.js from master to clean and github will clean it automatically after pushing.

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

Successfully merging this pull request may close these issues.

None yet

1 participant