Misc modification, especially however to add AllowOrigin * Header.

This commit is contained in:
webclip
2020-02-26 14:44:49 -05:00
parent 847478a845
commit 93f6261e7f
4 changed files with 114 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
// $Revision: 16 $ -- $Date: 2016-02-08 15:14:12 -0600 (Mon, 08 Feb 2016) $
var http = require('http');
var sys = require('sys');
var sys = require('util');
var fs = require('fs');
var moniFilename = 'abc';
var querystring = require('querystring');
@@ -31,7 +31,7 @@ http.createServer(function(req, res) {
}
} else {
console.log("RCV-HTML");
res.writeHead(200, { 'Content-Type': 'text/html', 'Cache-Control': 'no-cache' });
res.writeHead(200, { 'Content-Type': 'text/html', 'Cache-Control': 'no-cache' ,'Access-Control-Allow-Origin': '*' });
arrMatches = req.url.match(new RegExp(/\/(save|raw)\/(.*)$/));
console.log("Matches", arrMatches);
if ((arrMatches) && (arrMatches.length === 3)) {