-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identify unwanted code #2
Comments
Disable CopayCrossDomain on if (config.enableEmailstore) {
var allowCopayCrossDomain = function(req, res, next) {
if ('OPTIONS' == req.method) {
res.send(200);
res.end();
return;
}
next();
}
app.use(allowCopayCrossDomain);
} |
Disable static file serving on 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));
} |
Remove custom headers at 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'); |
Remove currency on // Currency
var currency = require('../app/controllers/currency');
app.get(apiPrefix + '/currency', currency.index); Drop |
Remove default route on app.get('*', index.render); Remove associated code on 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);
}
}; |
loganbauer
pushed a commit
to superflashcoin/bitcore-node
that referenced
this issue
Oct 21, 2016
* commit '30e1f259815e9c9bbaf45544c1845ed887fcb4ee': update package.json
karelbilek
referenced
this issue
in trezor-graveyard/bitcore-node
May 24, 2017
Update download script, use v0.13.2.1-litecore-rc2
micahriggan
pushed a commit
that referenced
this issue
Mar 28, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E.g. Storage and mailbox plugins
The text was updated successfully, but these errors were encountered: