diff --git a/developer_manual/basics/controllers.rst b/developer_manual/basics/controllers.rst index 3c1e7eab6..9994a9201 100644 --- a/developer_manual/basics/controllers.rst +++ b/developer_manual/basics/controllers.rst @@ -856,75 +856,6 @@ A controller method that would allow five requests for logged-in users and one r Brute-force protection ^^^^^^^^^^^^^^^^^^^^^^ -Modifying the content security policy -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -By default Nextcloud disables all resources which are not served on the same domain, forbids cross domain requests and disables inline CSS and JavaScript by setting a `Content Security Policy `_. -However if an app relies on third-party media or other features which are forbidden by the current policy the policy can be relaxed. - -.. note:: Double check your content and edge cases before you relax the policy! Also read the `documentation provided by MDN `_ - -To relax the policy pass an instance of the ContentSecurityPolicy class to your response. The methods on the class can be chained. - -The following methods turn off security features by passing in **true** as the **$isAllowed** parameter - -* **allowInlineScript** (bool $isAllowed) -* **allowInlineStyle** (bool $isAllowed) -* **allowEvalScript** (bool $isAllowed) -* **useStrictDynamic** (bool $isAllowed) - - Trust all scripts that are loaded by a trusted script, see 'script-src' and 'strict-dynamic' - -* **useStrictDynamicOnScripts** (bool $isAllowed) - - Trust all scripts that are loaded by a trusted script which was loaded using a ``