root-systems / dogstack

:dog: :dog: :dog: a popular-choice grab-bag framework for teams working on production web apps
https://dogstack.js.org/
25 stars 7 forks source link

ability to configure cors origin #95

Open iainkirkpatrick opened 6 years ago

iainkirkpatrick commented 6 years ago

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.