Stock Price Checker with CSP issue

I finished with the stock price checker challenge.

Please test it. If find any bug I try to fix. On client console I have an error what I could not resolve. I tried everything but still appear… If you know how to resolve, please help me. The problem is in the helmet CSP code: I am run out from ideas…

  directives: {
    defaultSrc: ["'self'"],
    styleSrc: ["'self'", "'unsafe-inline'"],
    scriptSrc: ["'self'", "'unsafe-inline'", ""],
    imgSrc: ["'self'", "", ""]
  browserSniff: false

  • bad: shows an raw error
= ok
= ok
= ok
= ok

  • A has 2 Likes and B 1 like
  • A: “rel_likes”: 1
  • B: “rel_likes”: -1
    I didn’t understand the idea of rel_likes, but 2-1=1 and 1-2=-1 so it seems to be correct

  • I don’t have an error in my chrome browser.
  • I also added your helmet-stuff in another project and I did NOT get a server error.

Thanks for your time. I corrected the server error:
Now the response is: Invalid user input..
The example project response with an object but I think so better to handle as an error the empty input… In first look the store in the database also the empty query… strange.