Converting from .htaccess

I am working for a company who uses caddy and I have provided them with a .htaccess file but they would like the code to be put into a caddyfile.

How would I write this in caddy?

Header set Content-Security-Policy "frame-ancestors 'none';"

I’d really appreciate any help you can offer.

Hi @exemplar, welcome to the Caddy community.

You can set headers with the header directive.

https://caddyserver.com/docs/header

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.