Allow tag-reader-dummy from non-localhost
This commit is contained in:
parent
adc365b4f8
commit
734bd6cdad
@ -61,7 +61,7 @@ var html = `
|
|||||||
console.log(uid);
|
console.log(uid);
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', 'http://localhost:8191/', true);
|
xhr.open('POST', 'http://' + document.location.host + '/', true);
|
||||||
xhr.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');
|
xhr.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');
|
||||||
xhr.send('uid=' + uid);
|
xhr.send('uid=' + uid);
|
||||||
};
|
};
|
||||||
@ -91,5 +91,7 @@ app.post('/', function(req, res, next) {
|
|||||||
server.on('request', app);
|
server.on('request', app);
|
||||||
|
|
||||||
server.listen(8191, function () {
|
server.listen(8191, function () {
|
||||||
process.stderr.write('tag-reader-dummy listening at http://localhost:8191');
|
process.stderr.write('tag-reader-dummy listening at http://*:8191');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// vim:ft=javascript:
|
||||||
|
Loading…
Reference in New Issue
Block a user