{"id":21277915,"url":"https://github.com/b13/hydra","last_synced_at":"2025-06-27T15:06:55.548Z","repository":{"id":48235480,"uuid":"361750271","full_name":"b13/hydra","owner":"b13","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-29T06:21:01.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-09T08:08:29.824Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-26T12:56:38.000Z","updated_at":"2025-04-07T08:30:35.000Z","dependencies_parsed_at":"2023-01-28T08:31:33.994Z","dependency_job_id":null,"html_url":"https://github.com/b13/hydra","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/b13/hydra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fhydra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fhydra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fhydra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fhydra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/hydra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fhydra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260027162,"owners_count":22947792,"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-21T10:08:15.312Z","updated_at":"2025-06-27T15:06:55.520Z","avatar_url":"https://github.com/b13.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hydra. So many Head(er)s.\n\nThis extension allows to add response headers on a per site base without using TypoScript.\n\nIf you have only one set of response headers that you want your TYPO3 websites to send, it might be a good idea\nto configure the headers directly in your webserver. However, there might be the requirement that different\nsites inside the same TYPO3 system have to send different headers. In such a case, this extension provides the\nfunctionality to configure response headers in the site configuration.\n\n## Example\n\nIn the site config simply specify the headers:\n\n```yaml\nresponseHeaders:\n  Content-Security-Policy: \"default-src 'self';\"\n  Referrer-Policy: \"no-referrer-when-downgrade\"\n  X-Content-Type-Options: \"nosniff\"\n  X-Xss-Protection: \"1; mode=block\"\n  Feature-Policy: \"camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'\"\n  Permissions-Policy: \"camera=(), geolocation=(), microphone=(), payment=()\"\n  X-Frame-Options: \"SAMEORIGIN\"\n```\n\nTo improve maintainability of header configuration with many parts like CSP or Feature-policy\neach header can be configured as a list. The list items will be concatenated to one string when the header is added.\nThe above example could be rewritten like this:\n\n```yaml\nresponseHeaders:\n  Content-Security-Policy: \"default-src 'self';\"\n  Referrer-Policy: \"no-referrer-when-downgrade\"\n  X-Content-Type-Options: \"nosniff\"\n  X-Xss-Protection: \"1; mode=block\"\n  Feature-Policy:\n    - \"camera 'none';\"\n    - \"geolocation 'none';\"\n    - \"microphone 'none';\"\n    - \"payment 'none'\"\n  Permissions-Policy:\n    - \"camera=(),\"\n    - \"geolocation=(),\"\n    - \"microphone=(),\"\n    - \"payment=()\"\n  X-Frame-Options: \"SAMEORIGIN\"\n```\n\nThose headers will be added via a middleware to responses only for the corresponding site.\n\n## Sharing our expertise\n\n[Find more TYPO3 extensions we have developed](https://b13.com/useful-typo3-extensions-from-b13-to-you) that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fhydra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Fhydra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fhydra/lists"}