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

false antiforgery exception #6

Closed
JoshScan opened this issue Jan 4, 2019 · 2 comments
Closed

false antiforgery exception #6

JoshScan opened this issue Jan 4, 2019 · 2 comments

Comments

@JoshScan
Copy link
Contributor

JoshScan commented Jan 4, 2019

when testing and the captcha hostname is set to local host it throws on lione 34 of RecaptchaServices.cs because e.g. localhost != localhost:12345
looks like code should test against request.Host.Host.ToLower()

@TimothyMeadows
Copy link
Owner

TimothyMeadows commented Jan 4, 2019

Hmm, interesting condition I'm not sure you can actually even use recaptcha from localhost anyway? It's fair to say anyone hosting on a non-standard port will have the same issue though. I also notice you put in a pull request for this.

@TimothyMeadows
Copy link
Owner

I have merged your pull request. Thank you for the bug report, and the patch. Contributions are always appreciated!

6b76762
https://www.nuget.org/packages/reCAPTCHA.AspNetCore/2.1.2

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

2 participants