- Newest
- Most votes
- Most comments
I would suggest to:
- Raise a Feature Request or Bug Report Yes, you can and should raise this with AWS. The current behavior isn't CSP-friendly, and requesting that AWS load all functionality via external scripts (rather than inline eval) is a reasonable ask:
- Submit feedback via your AWS Support plan
- Open an issue on the Amazon EKS AMI GitHub repo if relevant
-
Use SHA-based CSP Directives but Not Recommended Using script-src 'self' 'sha256-...' to allow specific inline scripts, but this is brittle and not recommended for dynamic scripts like those used by AWS WAF.
-
Consider Alternative WAF Configurations If CSP compliance is critical, you might explore:
- Using AWS WAF without JavaScript integrations (though this limits CAPTCHA and silent challenge features)
- Implementing custom challenge logic that doesn’t rely on AWS’s JavaScript API
Hey,
Hope you're keeping well.
The AWS WAF JavaScript challenge currently uses dynamic code evaluation as part of its bot mitigation flow, which will be blocked by a strict CSP without unsafe-eval. There’s no configuration to disable this in the managed challenge today. If you need to keep your CSP strict, the only path is to avoid using the JavaScript challenge and instead use other WAF rule actions like CAPTCHA or silent block. To request a CSP-friendly implementation, open a feature request through the AWS Support Center or your account team so it can be routed to the WAF service team.
Thanks and regards,
Taz
answered 10 months ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago

I appreciate your answer. I am hoping that AWS Support will also read this post as I am highly reluctant to pay hundreds of dollars to start a support plan just for the privilege of reporting a bug in their own system. I feel like bug reporting should not be part of a paid support plan, but what do I know?
Thanks for your suggestions. I'll keep an eye on re:Post and see what else I can find.