mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Forgot to move cors_proxy out
This commit is contained in:
@@ -54,6 +54,7 @@ function startClustered() {
|
|||||||
function startSingle(clustered) {
|
function startSingle(clustered) {
|
||||||
var app = require('./index.js');
|
var app = require('./index.js');
|
||||||
var cors_options = {};
|
var cors_options = {};
|
||||||
|
var cors_proxy = require('cors-anywhere');
|
||||||
try {
|
try {
|
||||||
var cert_config = require(path.join(path.join(__dirname, 'config'), 'cert_config.js'));
|
var cert_config = require(path.join(path.join(__dirname, 'config'), 'cert_config.js'));
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
@@ -81,7 +82,6 @@ function startSingle(clustered) {
|
|||||||
requireHeader: ['origin', 'x-requested-with'],
|
requireHeader: ['origin', 'x-requested-with'],
|
||||||
removeHeaders: ['cookie', 'cookie2'],
|
removeHeaders: ['cookie', 'cookie2'],
|
||||||
};
|
};
|
||||||
var cors_proxy = require('cors-anywhere');
|
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
server = http.Server(app);
|
server = http.Server(app);
|
||||||
//add = ",http://localhost:80*,http://localhost:8080*,localhost:8080*, localhost:8082*,http://zoff.dev:80*,http://zoff.dev:8080*,zoff.dev:8080*, zoff.dev:8082*";
|
//add = ",http://localhost:80*,http://localhost:8080*,localhost:8080*, localhost:8082*,http://zoff.dev:80*,http://zoff.dev:8080*,zoff.dev:8080*, zoff.dev:8082*";
|
||||||
|
|||||||
Reference in New Issue
Block a user