honnamkuan / nestjs-status-monitor

Simple, self-hosted module based on Socket.io and Chart.js to report realtime server metrics for NestJS v7+ based servers.
MIT License
15 stars 5 forks source link

content security policy the page’s settings blocked the loading of a resource at #128

Open chef88val opened 2 years ago

chef88val commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://localhost:3000/status
  2. Open DevTools in Chrome or Firefox
  3. Scroll down to '....'
  4. See error image image image

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here. image

honnamkuan commented 2 years ago

That should be due to your app have CSP policy setup to block downloading source from CDN.

It works well on the demo site https://nestjs-status-monitor.herokuapp.com/status