Add httpNodeCors setting

Adds a dependency on the 'cors' npm module
This commit is contained in:
Nick O'Leary
2014-02-17 22:32:53 +00:00
parent 09f162d933
commit 6b278fdceb
3 changed files with 41 additions and 9 deletions

View File

@@ -92,6 +92,15 @@ module.exports = {
// cert: fs.readFileSync('certificate.pem')
//},
// The following property can be used to configure cross-origin resource sharing
// in the HTTP nodes.
// See https://github.com/troygoode/node-cors#configuration-options for
// details on its contents. The following is a basic permissive set of options:
//httpNodeCors: {
// origin: "*",
// methods: "GET,PUT,POST,DELETE"
//},
// Anything in this hash is globally available to all functions.
// It is accessed as context.global.
// eg: