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
|
@Override
|
||||||
public void handle(HttpExchange exchange) {
|
public void handle(HttpExchange exchange) {
|
||||||
try {
|
try {
|
||||||
|
exchange.getResponseHeaders().add("Access-Control-Allow-Origin", "https://tbmcplugins.github.io");
|
||||||
if (exchange.getRequestURI().getPath().equals("/" + GetName()))
|
if (exchange.getRequestURI().getPath().equals("/" + GetName()))
|
||||||
IOHelper.SendResponse(handlePage(exchange));
|
IOHelper.SendResponse(handlePage(exchange));
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue