{"id":20961856,"url":"https://github.com/heimrichhannot/contao-csp-bundle","last_synced_at":"2026-01-03T22:05:47.392Z","repository":{"id":257381319,"uuid":"842912106","full_name":"heimrichhannot/contao-csp-bundle","owner":"heimrichhannot","description":"Add Content Security Policy (CSP) to Contao 4.","archived":false,"fork":false,"pushed_at":"2025-02-03T07:51:12.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-04T10:19:51.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heimrichhannot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T11:24:43.000Z","updated_at":"2025-02-03T07:51:12.000Z","dependencies_parsed_at":"2024-09-16T11:36:40.675Z","dependency_job_id":"e159a081-b6ba-4a47-96d5-154d7311882f","html_url":"https://github.com/heimrichhannot/contao-csp-bundle","commit_stats":null,"previous_names":["heimrichhannot/contao-csp-bundle"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-csp-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-csp-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-csp-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-csp-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-csp-bundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254094864,"owners_count":22013650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T02:17:57.581Z","updated_at":"2026-01-03T22:05:47.312Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","readme":"# Contao CSP Bundle\n\nThis bundle backports parts of the Content Security Policy (CSP) implementation of Contao 5.3 to Contao 4.13.\n\n\u003e This bundle has no handling for inline scripts and styles. You need to add `'unsafe-inline'` to your directives.\n\n![Page settings](docs/screenshots/settings.png)\n\n## Upgrade to contao 5\n\nThis bundle is just a backport. You can seamlessly upgrade to Contao 5.3 without touching your CSP configuration (you need to uninstall this bundle before upgrading).\nAfterwards you can also remove the `'unsafe-inline'` directive from your CSP configuration as contao 5.3 has support for handling inline scripts and styles for csp.\n\n## Installation\n\nInstall the bundle via composer or contao manager and update the database afterwards.\n\n```bash\ncomposer require heimrichhannot/contao-csp-bundle\n```\n\n## Configuration\n\nGo to the root page settings. There you find an option to enable CSP. If you enable it, you can configure the CSP directives.\n\n## Read more\n\n[Offical documentation](https://docs.contao.org/manual/de/seitenstruktur/website-startseite/#content-security-policy)  \n[Pull request](https://github.com/contao/contao/pull/6631)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-csp-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-csp-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-csp-bundle/lists"}