Open bergundy opened 6 years ago
Yeah, cool thought. Though it's a breaking change.
@theganyo how is it breaking? What am I missing? Is there another way to configure the CORS middleware?
Ah, I see. Sorry. Yes, I think you're right... the intent was to be able to configure it in the yaml, but it seems there should have been tests to verify that.
The call to create the CORS object in https://github.com/theganyo/swagger-node-runner/blob/master/fittings/cors.js#L11 passes an object that looks like:
Changing that line to:
allows actually passing variables.
WDYT?