update bitcore
This commit is contained in:
parent
89d8aaeffe
commit
9019c3a6fc
3 changed files with 279 additions and 185 deletions
8
app.js
8
app.js
|
|
@ -2,6 +2,14 @@ var express = require('express');
|
|||
var http = require('http');
|
||||
var app = express();
|
||||
|
||||
// This is not really necesarry, just to simulate
|
||||
// Content Security Policy from Google Chrome Apps.
|
||||
//
|
||||
// app.use(function(req, res, next){
|
||||
// res.header("Content-Security-Policy", "script-src 'self';object-src 'none';media-src 'self';frame-src 'none';font-src 'self' data:");
|
||||
// next();
|
||||
// });
|
||||
|
||||
app.use('/', express.static(__dirname + '/'));
|
||||
app.get('*', function(req, res) {
|
||||
return res.sendFile(__dirname + '/' + 'index.html');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue