thedevsaddam / docgen

Transform your postman collection to HTML/Markdown documentation
MIT License
966 stars 134 forks source link

Errors in Console when deploying or running localhost with node.js and menus don't work #41

Open alifadda-me opened 3 years ago

alifadda-me commented 3 years ago

I get this unsolvable error in the console and the menus don't work Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-ZomnyosL2bmZ79LmErHEhL+1fVaBj9NngvpOK/l4qio='), or a nonce ('nonce-...') is required to enable inline execution.

Have a look at my website and see >> https://woofer-api.herokuapp.com/ GitHub >> https://github.com/silvertechguy/woofer-api/blob/master/server.js

I'm so sorry for my terrible English

vrajcm9 commented 3 years ago

You could separate the script from the .html page to a .js file that would solve the issue.

alifadda-me commented 3 years ago

You could separate the script from the .html page to a .js file that would solve the issue.

Thanks for your response. It's hard to do that because the file is minified in a way that can not be unminified.

vrajcm9 commented 3 years ago

There would be a starting . Just copy and paste everything between them and import them as src to the script tag.

alifadda-me commented 3 years ago

Thank you @vrajcm9 really appreciated.

Paras-code-007 commented 3 years ago

There would be a starting . Just copy and paste everything between them and import them as src to the script tag.

tried this but still not working used defer in script tag and put that after title tag