M
M
MOV_UA2021-01-31 13:14:42
Node.js
MOV_UA, 2021-01-31 13:14:42

When I enable helmet on the server side (NodeJS), I can't get data from the openweather API on the client. What changes to make to the code?

Refused to load the image 
'https://openweathermap.org/img/wn/[email protected]' <- к http добавляется s
 because it violates the following Content Security Policy directive: "img-src 'self' data:".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MOV_UA, 2021-01-31
@MOV_UA

I decided so far partially, having painted the helmet according to the functions and commented out
// app.use(helmet.contentSecurityPolicy())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question