RedHatInsights / frontend-components

Apache License 2.0
34 stars 102 forks source link

Fix bad Origin header in the dev proxy #2078

Closed kahowell closed 2 weeks ago

kahowell commented 2 weeks ago

We found that our service, at /api/rhsm-subscriptions/v1 was rejecting requests made by the dev proxy due to a bad Origin header.

I discovered it is because the proxy generates an Origin value with a trailing slash.

This change strips the trailing slash.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin

nacho-bot commented 2 weeks ago

                      :soon::shipit::octocat:      :bug:Shipit Squirrel has this release bugfix surrounded, be ready for a new version:beetle:

nacho-bot commented 2 weeks ago

     🌱 🌸 🌷 🌻 🌟 New version of package has been released 🌟 🌻 🌷 🌸 🌱

                The release is available on:

       :package:@redhat-cloud-services/frontend-components-config-utilities/v/3.2.5:package:

             :boom:This feature is brought to you by probot:rocket: