From e799bc5c75e1428dc1f72f6128cdcd66d5f17947 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sun, 15 Sep 2019 08:39:13 -0400 Subject: [PATCH] Access-Control headers --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 57864b8..c8fb40c 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,8 @@ async function handle(request) { "Pragma": "no-cache", "Expires": "Thu, 01 Jan 1970 00:00:01 GMT", "Content-Security-Policy": "default-src 'none';", + "Access-Control-Allow-Origin": "*", + "Access-Control-Allow-Methods": "GET, OPTIONS", "X-Did-You-Know": "You can use \"curl -4 simpip.com\" or \"curl -6 simpip.com\" to get either address!", "X-Source-Code": "https://github.com/jakejarvis/simpip" }