currently dogstack allows configuring of cors requests by taking asset.url from the app-provided config, parsing that url with url.parse(), and passing it to the cors middleware.
This is pretty inflexible, and the cors middleware can be passed other options (i.e. a whitelist, a regexp) - it'd be rad to implement these.
currently dogstack allows configuring of cors requests by taking
asset.url
from the app-provided config, parsing that url withurl.parse()
, and passing it to thecors
middleware. This is pretty inflexible, and thecors
middleware can be passed other options (i.e. a whitelist, a regexp) - it'd be rad to implement these.