stormpath / stormpath-sdk-express

[Deprecated] Stormpath SDK for Node.js Express applications.
Apache License 2.0
23 stars 9 forks source link

Fixing CORS support #4

Closed robertjd closed 9 years ago

robertjd commented 9 years ago

Cors headers were not being added if using the attachDefaults() method for registering the middleware, this branch fixes that problem.

index.js has been refactored for readability

attachDefaults() is now the documented method for basic usage. app.use(spMiddlware) still works, but is removed from documentation for now (as we instruct you to use attachDefaults() on the Angular Guide)