2 Answers
- Newest
- Most votes
- Most comments
0
Hi, did you properly set the "Immunity time" of your captcha? See point 7 of https://cloudcompiled.com/tutorials/aws-waf-captcha-protect-from-bots/
Once a user solves a captcha, a cookie containing the validated token will be
saved in their browser. By default the immunity time is set to 5 mins (300 seconds).
Once the immunity period expires, the user will be have to solve a new Captcha to
access the protected page again.
Hope it helps!
Didier
0
Is this problem solved? I get the same problem, the API keeps returning 405 and captcha html after captcha is solved, I use default immunity time, so it shouldn't be the problem. I follow the code in below link to handle response, it's almost same as OP's code. https://docs.aws.amazon.com/waf/latest/developerguide/waf-js-captcha-api-conditional.html In request header, x-aws-waf-token is attached In the response header, it shows a general error x-amzn-errortype: ForbiddenException x-amzn-waf-action: captcha x-cache: Error from cloudfront
answered 10 months ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
