Browse Source

enabled CORS

master
Julian Steinwachs 10 years ago
parent
commit
286cf0b405
  1. 3
      twister-proxy.js

3
twister-proxy.js

@ -5,6 +5,7 @@ var express = require("express"); @@ -5,6 +5,7 @@ var express = require("express");
var console = require("console");
var app = express();
var cors = require('cors');
try
{
@ -73,6 +74,8 @@ CounterInstance = function() @@ -73,6 +74,8 @@ CounterInstance = function()
require("log-timestamp");
app.use(cors());
app.get("*", function(request, response)
{
if(settings.Server.enable_https&&request.protocol=="http")

Loading…
Cancel
Save