From deb44806ce927e6f030352ae51255a1f6c55fc1a Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 1 Jun 2017 11:08:44 +0200 Subject: [PATCH] TESTING IN PROD. Allowing gh as origin --- src/buttondevteam/website/page/Page.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/buttondevteam/website/page/Page.java b/src/buttondevteam/website/page/Page.java index 21bd5a2..66633f8 100644 --- a/src/buttondevteam/website/page/Page.java +++ b/src/buttondevteam/website/page/Page.java @@ -18,6 +18,7 @@ public abstract class Page implements HttpHandler { @Override public void handle(HttpExchange exchange) { try { + exchange.getResponseHeaders().add("Access-Control-Allow-Origin", "https://tbmcplugins.github.io"); if (exchange.getRequestURI().getPath().equals("/" + GetName())) IOHelper.SendResponse(handlePage(exchange)); else {