Intro
This repo demonstrates how to use a reverse proxy to upgrade the less flexible X-Frame-Options header with a Content-Security-Policy header.
Setup
The local /etc/hosts file needs to contain:
127.0.0.1 www.corp.com
127.0.0.1 form1.corp.com
Docker
To start run:
docker-compose up
and navigate to: http://www.corp.com:8080/
Caddy
To test the Caddy Version comment out the Apache section and remove the comments from the Caddy section in the docker-compose.yml