elements
elements copied to clipboard
`tryItCorsProxy` shouldn't change request url in sample section
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
- Version used:
https://unpkg.com/@stoplight/[email protected]/web-components.min.js
This makes tryItCorsProxy nonfunctional. Able to reproduce.
Any plans for fixing this?