TESTING IN PROD. Allowing gh as origin
This commit is contained in:
parent
e14d786417
commit
deb44806ce
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue