Thank you Andrey, I follow your suggestion, then implement fix from
enable-cors.org.
Adding this,
app.all('/', function(req, res, next) {
res.header(Access-Control-Allow-Origin, *);
res.header(Access-Control-Allow-Headers, X-Requested-With);
next();
});
I also fix a bug in my code, to add
Thank you very much, Benjamin.
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to
Hello, I'm new to node.js.
I'm running a server, listen on 127.0.0.1:3000,
var express = require('express');
var EventEmitter = require('events').EventEmitter;
var emitter = new EventEmitter();
var app = express.createServer();
var fs = require('fs');
var eventQueue = [];
var queueStart = 0;
Hello, I'm new to node.js
So I have an app.js run by node. (Windows)
I call the node app.js from within a PHP script using exec().
Then, I have node.exe process running.
Question: Is there any node.exe's argument to close/terminate node.exe
process?
Something likes node.exe --stop .. so that I