Information Security Projects - Stock Price Checker

Tell us what’s happening:

all the tests are passing minus the last one

  • Passed:You can provide your own project, not the example URL.

  • Passed:You should set the content security policies to only allow loading of scripts and CSS from your server.

  • Passed:You can send a GET request to /api/stock-prices, passing a NASDAQ stock symbol to a stock query parameter. The returned object will contain a property named stockData.

  • Passed:The stockData property includes the stock symbol as a string, the price as a number, and likes as a number.

  • Passed:You can also pass along a like field as true (boolean) to have your like added to the stock(s). Only 1 like per IP should be accepted.

  • Passed:If you pass along 2 stocks, the returned value will be an array with information about both stocks. Instead of likes, it will display rel_likes (the difference between the likes on both stocks) for both stockData objects.

  • Failed:All 5 functional tests are complete and passing.

How would I fix this issue?

###Your project link(s)

solution: boilerplate-project-stockchecker - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Information Security Projects - Stock Price Checker

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.