在 matomo 标签管理器中保存自定义脚本导致 403

saving custom scripts in matomo tag manager results in 403

一旦我在 Matomo 标签管理器中将 <script> ... </script> 添加到 "custom html" 标签并点击 "save",就会出现网络请求错误 403,提示 "You don't have permission to access this resource. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

当我点击 "save" 时,这个失败了:

<script> abc </script>

点击"save"这个就成功了:

abc

实际行为:保存失败

预期行为:保存成功

您很可能正在使用像 mod_security 这样的 Web 应用程序防火墙 (WAF) 来阻止包含 HTML.[= 的表单提交(因此 POST 参数) 11=]