OutgoingMessage.prototype._headers is depreciated, in stock price checker project

Tell us what’s happening:
I believe I’ve set up the helmet.js properly with the following code in my server.

app.use(helmet())
app.use(helmet.contentSecurityPolicy({directives:{defaultSrc:["'self'"], scriptSrc:["'self'"]}}))


but when I run the tests, I see the following warning in the console:

(node:920) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

could this be keeping me from passing the tests? (i know functional tests aren’t complete yet)

Your code so far

My repl
Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.

Challenge: Stock Price Checker

Link to the challenge:

Solved with This helpful post All it took was adding styleSrc["‘self’"] to my directives. It may be useful if this is added to the tutorial for the information security section, as I had no idea I needed to do this.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.