Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

enable file:// access

  • Loading branch information...
commit f992515de3feaec90ba6d96ae9eb2e76c5eb5868 1 parent 782ce7b
@benvanik authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/api.js
View
3  lib/api.js
@@ -21,6 +21,9 @@ var API = function(port) {
});
this.server = http.createServer(function (req, res) {
+ // So we can access from file://
+ res.setHeader('Access-Control-Allow-Origin', '*');
+
var requestBody = '';
req.on('data', function(chunk) {
requestBody += chunk;
Please sign in to comment.
Something went wrong with that request. Please try again.