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)
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 readabilityattachDefaults()
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 useattachDefaults()
on the Angular Guide)