I hade the same problem, it was resolved by adding a HSTS response header to the rewrite rules in agw:
strict-transport-security: max-age=63072000; includeSubDomains; preload
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
requests blocked by the WAF are being forwarded to the backend API servers. How do you configure the backend pool or WAF to drop requests that are blocked by the WAF.
I hade the same problem, it was resolved by adding a HSTS response header to the rewrite rules in agw:
strict-transport-security: max-age=63072000; includeSubDomains; preload
Thank you for reaching out.
I understand you wish to drop the request when they are blocked by the WAF.
You achieve this by setting the WAF in prevention mode and then modifying the action to Block as shown in the screenshot below.
Hope this helps! Please let me know if the issue still persists. Thank you!