SmartBear / vscode-swaggerhub-release

SwaggerHub for VS Code - Providing SwaggerHub Integration inside the Visual Studio Code IDE.
https://marketplace.visualstudio.com/items?itemName=SmartBearSoftware.vscode-swaggerhub
12 stars 0 forks source link

Response headers for Try it Out differ on VS Code to the SH web app #8

Closed savage-alex closed 4 years ago

savage-alex commented 4 years ago

I was using the Try it out in conjunction with a POST endpoint that returns a location header with a 201 and noticed that the SwaggerUI in the VSCode extension shows different results to what is shown on the web app (Crucially the header I have added is missing) SwaggerHub VSCode Try It Out Issue

tmaguiresmartbear commented 4 years ago

Hi @savage-alex This is because SwaggerHub adds extra headers as a result of going through a proxy so we don't run into CORS issues. A more in depth explanation is in the Swagger-ui project here: https://github.com/swagger-api/swagger-ui/issues/3340#issuecomment-313550973