You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Hello guys, I have an issue on my server (on localhost everything is good) with requests from swagger page to its resources, it call https:// when I am on http://server:5556/docs/ . I see only blank page, without any data.
In Chrome Dev Tools I see Console logs:
GET https://{server}:5556/docs/swagger-ui.css net::ERR_SSL_PROTOCOL_ERROR
GET https://{server}:5556/docs/swagger-ui-bundle.js net::ERR_SSL_PROTOCOL_ERROR
....
Looks like it calls https instead of http, but SSL is not configured on my API, and I am not use NGINX or something.
Its very important that problem isnt on localhost, its on my VPS.
There is my configuration (also problems are exists without bearer or addServer):
const options = new DocumentBuilder()
.setTitle('NestJS Realworld Example App')
.setDescription('The Realworld API description')
.setVersion('1.0')
.setBasePath('api/icw')
.addServer('http://localhost:5556')
.addServer(`http://${server}:5556`)
.addBearerAuth()
.build()
const document = SwaggerModule.createDocument(app, options)
What I should do to fix the swagger ui page on http protocol?
I tried to find answers on swagger.io and Nest docs, but I dont know what I need to fix.
Thank you very much
Here is my Chrome DevTools /docs request inspect, why it call to https resources? How to fix that?
Expected behavior
Going on /docs page should give us scheme, and requests should go on http instead of https protocol.
@taipoxin I'm pretty sure this is an issue on swagger-ui-express side. There's one similar but it was closed by the issue opener (scottie1984/swagger-ui-express#212). Can you try opening an issue on swagger-ui-express?
I'm submitting a...
Current behavior
Hello guys, I have an issue on my server (on localhost everything is good) with requests from swagger page to its resources, it call https:// when I am on http://server:5556/docs/ . I see only blank page, without any data.
In Chrome Dev Tools I see Console logs:
Looks like it calls https instead of http, but SSL is not configured on my API, and I am not use NGINX or something.
Its very important that problem isnt on localhost, its on my VPS.
There is my configuration (also problems are exists without bearer or addServer):
What I should do to fix the swagger ui page on http protocol?
I tried to find answers on swagger.io and Nest docs, but I dont know what I need to fix.
Thank you very much
Here is my Chrome DevTools /docs request inspect, why it call to https resources? How to fix that?
![Без названия](https://user-images.githubusercontent.com/18747731/97016578-928c3e00-1555-11eb-8cc3-e754d8255c57.png)
Expected behavior
Going on /docs page should give us scheme, and requests should go on http instead of https protocol.
Environment
The text was updated successfully, but these errors were encountered: