From 26890d28a0b713d12319da11be1590cacc75aa34 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Wed, 15 Feb 2017 20:24:52 -0800 Subject: [PATCH] Update for the new CORS handling for frontend for the API. --- deployment/caddyfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deployment/caddyfile b/deployment/caddyfile index 5a90729..0741c2a 100644 --- a/deployment/caddyfile +++ b/deployment/caddyfile @@ -5,7 +5,11 @@ proxy /api 127.0.0.1:8001 { without /api } - cors + header / { + Access-Control-Allow-Origin * + Access-Control-Allow-Methods "GET, POST, OPTIONS" + Access-Control-Allow-Headers "Content-Type" + } gzip mime .manifest text/cache-manifest } \ No newline at end of file