cisagov / crossfeed

External monitoring for organization assets
https://docs.crossfeed.cyber.dhs.gov
Creative Commons Zero v1.0 Universal
356 stars 54 forks source link

Update Access-Control-Allow-Origin to include subdomains #2577

Closed Matthew-Grayson closed 4 months ago

Matthew-Grayson commented 4 months ago

🗣 Description

Updates express cors origin option to account for crossfeed subdomains such as staging-cd.crossfeed.cyber.dhs.gov/ [/crossfeed\.cyber\.dhs\.gov$/, /localhost$/] -> [/.*crossfeed\.cyber\.dhs\.gov$/, /localhost$/]

💭 Motivation and context

the /organizations endpoint fails with a 502 status (internal server error

🧪 Testing

✅ Pre-approval checklist

✅ Pre-merge checklist

✅ Post-merge checklist