elements icon indicating copy to clipboard operation
elements copied to clipboard

`tryItCorsProxy` shouldn't change request url in sample section

Open hotrush opened this issue 3 years ago • 2 comments

Adding tryItCorsProxy option changes request url in Request Sample section. E.g. API URL - https://api.site.com, PROXY URL - https://docs.site.com/proxy/ Request sample looks like

curl --request GET \
  --url https://docs.site.com/proxy/https://api.site.com \
  --header 'Content-Type: application/json'

which is weird because proxy is used to try query from the docs page, but not to copy and share it forward

Current Behavior

Proxy url displayed in Request Sample section

Expected Behavior

Valid api url displayed in Request Sample section

Environment

hotrush avatar May 23 '22 15:05 hotrush

This makes tryItCorsProxy nonfunctional. Able to reproduce.

e-katzenstein avatar Jun 09 '22 16:06 e-katzenstein

Any plans for fixing this?

hotrush avatar Aug 05 '22 07:08 hotrush