IBM / python-sdk-core

The python-sdk-core repository contains core functionality required by Python code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
20 stars 27 forks source link

feat: improve behavior of HTTP redirects #182

Open pyrooka opened 11 months ago

pyrooka commented 11 months ago

This commit modifies the Python core so that it will include "safe" headers when performing a cross-site redirect where both the original and redirected hosts are within IBM's "cloud.ibm.com" domain.

pyrooka commented 11 months ago

I've converted this PR to to draft, to prevent merging it before the necessary CISO approvals.

pyrooka commented 11 months ago

@padamstx I've made the tests more robust, but it may be overkill...:) let me know what you think!