New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger trying to get content via https on non ssl express server #212
Comments
@n0n3br How did you resolve this? |
Unfortunately no. |
@n0n3br |
Removing helmet did not work for me |
Guys no need to remove const swaggerUi = require('swagger-ui-express');
const swaggerDocument = require('../swagger.json');
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument));
app.use(helmet()); |
Try using Swagger version 4.1.3. It solved my problem. |
[관련 git issues](scottie1984/swagger-ui-express#212 (comment)) - helmet 이 swagger ui보다 먼저 적용되는 경우 발생하는 에러로 적용 순서를 변경하여 해결하였다
[관련 git issues](scottie1984/swagger-ui-express#212 (comment)) - helmet 이 swagger ui보다 먼저 적용되는 경우 발생하는 에러로 적용 순서를 변경하여 해결하였다
[관련 git issues](scottie1984/swagger-ui-express#212 (comment)) - helmet 이 swagger ui보다 먼저 적용되는 경우 발생하는 에러로 적용 순서를 변경하여 해결하였다 (cherry picked from commit cc1b31a)
I've configured a no ssl server on my machine and swagger works fine.
When I deploy the application to the productions server (debian 9), everytime I try to access the documentation route it tries to fetch resoursce files (swagger-ui.css for example) via https. Since there's no https server configured, it never loads the page.
Is there someway to force using only http ?
The text was updated successfully, but these errors were encountered: