TESTING IN PROD. Allowing gh as origin

This commit is contained in:
Norbi Peti 2017-06-01 11:08:44 +02:00
parent e14d786417
commit deb44806ce

View file

@ -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 {