Misc modification, especially however to add AllowOrigin * Header.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user