Skip to content

Instantly share code, notes, and snippets.

@assafmo
Last active October 19, 2022 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save assafmo/7b77ad19fff8ff1ffd41bdaa7bb4ef50 to your computer and use it in GitHub Desktop.
Save assafmo/7b77ad19fff8ff1ffd41bdaa7bb4ef50 to your computer and use it in GitHub Desktop.
caddy conf for reverse proxy
banana.com
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Methods *
Access-Control-Allow-Headers *
}
@corspreflight {
method OPTIONS
path *
}
respond @corspreflight 204
reverse_proxy 127.0.0.1:1317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment