|
|
|
@ -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") |
|
|
|
|