express-yui icon indicating copy to clipboard operation
express-yui copied to clipboard

Support ability to pass in a secure base and comboBase

Open akshayp opened this issue 12 years ago • 2 comments

For apps that need to support both SSL and non-SSL it would be useful to have the ability to customize the base and comboBase for YUI and all subsequent groups per request. I realize that express-yui is not in the business of per-request customization but I'd like to here your thoughts on what the right approach is for this.

One thought is to have generic middleware that plugs into express-yui that anyone can consume by passing in a simple map of SSL + non-SSL URLs for each group so the config can be customized per request. Another option I can think of is to augment the config clientside so loader will pull in modules from the right base. Thoughts?

/cc @redonkulus @mridgway

akshayp avatar Dec 30 '13 22:12 akshayp

/cc @caridy

redonkulus avatar Jan 09 '14 04:01 redonkulus

trello card: https://trello.com/c/kpdhmgv3/199-ssl-express-yui-controlling-the-protocol-base-and-combobase-per-request

caridy avatar Jan 09 '14 14:01 caridy