I would like to use this in .htaccess:
Header append X-Frame-Options SAMEORIGIN
AND
Header append X-Frame-Options ALLOW-FROM https://example.com/
Is it possible to have both at the same time?
How should it look like in code to add to .htaccess?
I tried several combinations but get Error message in website when doing this.
I configured Admin Tools to have this in .htaccess:
<IfModule mod_headers.c>
Header append X-Frame-Options SAMEORIGIN
# The `X-Frame-Options` response header should be send only for
# HTML documents and not for the other resources.
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|woff2?|xloc|xml|xpi)$">
Header unset X-Frame-Options
</FilesMatch>
</IfModule>
Thanks