feathersjs-ecosystem / feathers-chat-ts

A Feathers real-time chat application in TypeScript
MIT License
54 stars 25 forks source link

Use of Helmet default settings cause scripts to fail to load #103

Closed watkinspd closed 2 years ago

watkinspd commented 2 years ago

I note a difference between the javascript version of feathers-chat app.js and the typesscript version app.ts in how they use Helmet.

The javascript version uses a directive wth helmet to set ContentSecurityPolicy: false whereas the typescript version does not include this.

I added this to app.ts at line 27 and the code started working for me. Previous to this browsing localhost:3030 resulted in a blank page and the javascript console showed errors attempting to load the scripts in index.html due to content security policy.