Skip to content
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

Issue rendering Swagger UI, Blank page #1771

Open
Debap88 opened this issue Mar 6, 2024 · 1 comment
Open

Issue rendering Swagger UI, Blank page #1771

Debap88 opened this issue Mar 6, 2024 · 1 comment

Comments

@Debap88
Copy link

Debap88 commented Mar 6, 2024

Describe the bug
Issue rendering /swagger/index.html have unsafe <script> tag

Error message : Refused to execute inline script because it violates the following Content Security Policy directive: "script-src" .Either the 'unsafe-inline' keyword, a hash .... Is required to enable inline execition

Screenshots

Your swag version
e.g. 1.16.3

Your go version
e.g. 1.20

Desktop (please complete the following information):

  • OS: iOS
  • Browser: chrome
  • Version: 22

Additional context
Add any other context about the problem here.

@Debap88 Debap88 changed the title Issue rendering Swagger Ui , Blank page Issue rendering Swagger UI, Blank page Mar 7, 2024
@Debap88
Copy link
Author

Debap88 commented Mar 26, 2024

Can anyone please help with a solution? cc @sdghchj @ubogdan @easonlin404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant