Skip to content

Commit

Permalink
Add frame-ancestors CSP directive
Browse files Browse the repository at this point in the history
  • Loading branch information
lspreitzer committed Nov 28, 2024
1 parent 033f7c5 commit 2c259ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Configuration/FlexForm/ContentSecurityPolicy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@
<placeholder>'self' 'unsafe-inline' example.com *.example.com https://onlysecure.example.com</placeholder>
</config>
</frameSrc>
<frameAncestors>
<label>frame-ancestors</label>
<description>LLL:EXT:ls_security_headers/Resources/Private/Language/locallang_tca.xlf:tx_lssecurityheaders_headers.content_security_policy.frame-ancestors.description</description>
<config>
<type>text</type>
<eval>trim</eval>
<placeholder>'none' 'self' example.com *.example.com https://onlysecure.example.com</placeholder>
</config>
</frameAncestors>
<fontSrc>
<label>font-src</label>
<description>LLL:EXT:ls_security_headers/Resources/Private/Language/locallang_tca.xlf:tx_lssecurityheaders_headers.content_security_policy.font-src.description</description>
Expand Down
5 changes: 4 additions & 1 deletion Resources/Private/Language/locallang_tca.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns:t3="http://typo3.org/schemas/xliff" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" original="EXT:ls_security_headers/Resources/Private/Language/locallang_tca.xlf" datatype="plaintext" product-name="ls_security_headers" date="2024-10-18T13:06:19+02:00">
<file source-language="en" original="EXT:ls_security_headers/Resources/Private/Language/locallang_tca.xlf" datatype="plaintext" product-name="ls_security_headers" date="2024-11-28T13:30:38+01:00">
<header></header>
<body>
<trans-unit id="tx_lssecurityheaders_headers" resname="tx_lssecurityheaders_headers">
Expand All @@ -24,6 +24,9 @@
<trans-unit id="tx_lssecurityheaders_headers.content_security_policy.form-src.description" resname="tx_lssecurityheaders_headers.content_security_policy.form-src.description">
<source>Define which URIs can be used as the action of HTML form elements. E.g. &#39;none&#39;</source>
</trans-unit>
<trans-unit id="tx_lssecurityheaders_headers.content_security_policy.frame-ancestors.description" resname="tx_lssecurityheaders_headers.content_security_policy.frame-ancestors.description">
<source>Define valid parents that may embed this page. E.g. &#39;none&#39; &#39;self&#39; example.com *.example.com https://onlysecure.example.com</source>
</trans-unit>
<trans-unit id="tx_lssecurityheaders_headers.content_security_policy.frame-src.description" resname="tx_lssecurityheaders_headers.content_security_policy.frame-src.description">
<source>Define from where the protected resource can embed frames. E.g. &#39;self&#39; &#39;unsafe-inline&#39; example.com *.example.com https://onlysecure.example.com</source>
</trans-unit>
Expand Down

0 comments on commit 2c259ea

Please sign in to comment.