---
title: "ContentSecurityPolicies.php"
manual: "TYPO3 Explained"
version: "12.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:extension-configuration-contentsecuritypolicies-php@12.4"
source: "ExtensionArchitecture/FileStructure/Configuration/ContentSecurityPolicies.rst"
rendered: "2026-10-21T15:29:37+00:00"
---

> [!WARNING]
> **Attention**
>
> TYPO3 v12 has reached end-of-life as of April 30th 2026 and
> is no longer being maintained. Use the version switcher on the top
> left of this page to select documentation for a supported version of TYPO3.
>
> Need more time before upgrading?
> You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here:
> [TYPO3 ELTS](https://typo3.com/services/extended-support-elts).

# `ContentSecurityPolicies.php` {#extension-configuration-contentsecuritypolicies-php}

-   **ContentSecurityPolicies.php**

    -   *Scope:* extension
    -   *Path (Composer):* packages/my_extension/Configuration/ContentSecurityPolicies.php
    -   *Path (Classic):* typo3conf/ext/my_extension/Configuration/ContentSecurityPolicies.php

    <!-- TODO: no Markdown rendering for "versionadded" -->

    This file provides [Content Security Policies](https://docs.typo3.org/permalink/t3coreapi:content-security-policy@12.4)
    for frontend and backend.

    For details see the chapter about
    [Extension-specific Content Security Policy](https://docs.typo3.org/permalink/t3coreapi:content-security-policy-extension@12.4).
