Forum Discussion
Issue Getting JSON Response Page to Present on ASM Block
Given that the client-side javascript is expecting a JSON response, you need to configure ASM to provide a suitable JSON response that indicates an error in the form submission that caused blocking.
Your client-side javascript then needs to be responsible for providing a suitable message to the user that the illegal request was blocked.
There may be an existing JSON error response in the framework that you can use, or the framework may need to be modified to include a new error state. You cannot just try to insert HTML into the framework flow - the browser itself probably never sees it, just the javascript framework.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
