whatyouhide/corsica

Ability to allow all headers

nsweeting opened this issue · 3 comments

It would be nice to allow all headers with something like:

plug Corsica, [allow_headers: :all]

What's your use case?

I think related to #31, it makes sense to have an easily-visible option/default to add the simple headers (and content-type) from the spec.

I would hope I could just do plug Corsica, origins: "*" like it's suggested in the readme, and not have to read about allowed_headers and log and the entire preflight section of the cors spec just to understand why I'm not getting the behavior I want.

Closed in 38b7d6d.