Environment
Product |
Version |
---|---|
Acrolinx for AEM |
2.0.x - 2.2.x |
Issue
The Acrolinx for AEM Sidebar is unusable and returns an "Invalid JSON" error message.
Solution
A configuration needs to be added to the AEM Dispatcher by an AEM administrator or the AEM service provider. This needs to be added in Dispatcher:
Example Filter: Enable POST Requests
The following example filter allows submitting form data by the POST method:
/filter {
/0001 { /type "allow" /method "POST" /url "/apps/acrolinx/proxy/*" }
}
If the issue still occurs after POST requests have been allowed, check for an empty node under the paths /apps/acrolinx/proxy/api/v1/auth/sign-ins.
If the AEM default POST servlet is triggered and creates this empty node, delete the additional node to restore Sidebar functionality.