sachamorgese / chingu-voyage4-Bears-Team-6-backend

Back-end repository for https://github.com/chingu-voyage4/Bears-Team-6
0 stars 2 forks source link

Set origin option as an array instead of function #73

Closed kevcomedia closed 6 years ago

kevcomedia commented 6 years ago

Any origin that match a regex in the array should be whitelisted. It should also allow requests from the same origin (those with no Origin header automatically set).