Comments (5)
Disable CopayCrossDomain on config/express.js
if (config.enableEmailstore) {
var allowCopayCrossDomain = function(req, res, next) {
if ('OPTIONS' == req.method) {
res.send(200);
res.end();
return;
}
next();
}
app.use(allowCopayCrossDomain);
}
from bitcore-node.
Disable static file serving on config/express.js
:
if (config.publicPath) {
var staticPath = path.normalize(config.rootPath + '/../' + config.publicPath);
//IMPORTANT: for html5mode, this line must to be before app.router
app.use(express.static(staticPath));
}
from bitcore-node.
Remove custom headers at config/headers.js
res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,Content-Type,Authorization');
res.setHeader('Access-Control-Expose-Headers', 'X-Email-Needs-Validation,X-Quota-Per-Item,X-Quota-Items-Limit,X-RateLimit-Limit,X-RateLimit-Remaining');
from bitcore-node.
Remove currency on config/routes.js
:
// Currency
var currency = require('../app/controllers/currency');
app.get(apiPrefix + '/currency', currency.index);
Drop app/controllers/currency.js
as well
from bitcore-node.
Remove default route on config/routes.js
:
app.get('*', index.render);
Remove associated code on app/controllers/index.js
:
exports.render = function(req, res) {
if (config.publicPath) {
return res.sendfile(config.publicPath + '/index.html');
}
else {
var version = _getVersion();
res.send('bitcore-node API v' + version);
}
};
from bitcore-node.
Related Issues (20)
- Cannot install bitcore-node npm in CentOS server HOT 1
- Node 8 Sync Won't Continue after Stopping HOT 2
- Node 8 'tx' endpoint doesn't return the number of confirmations HOT 3
- Node 8 doesn't show transactions in mempool (unconfirmed) HOT 2
- Cannot Upgrade from 0.1 to 5.0
- Link on "Creating a Service" Broken
- i can't start insight-api service HOT 1
- n.config
- Not able to send raw transaction
- Official bitcoind using and insight integration HOT 1
- Couldn't setup insight working for Bitcore 8
- InsightAPI -- SSL/https HOT 2
- Bitcore Sync is Extremely Slow (Several days block 310,000) on 8GB Dual Core Ubuntu HOT 2
- Can I prune blockchain after bitcore v8 sync?
- unable to update bitpay wallet
- Error when trying to start bitcore-node: DB service
- https://github.com/bitcoin-core/gui
- Error while install bitcore-node
- Issues installing bitcore-node
- Add bitcoin as a topic to this repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcore-node.