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
GETrequest to/api/stock-prices, passing a NASDAQ stock symbol to astockquery parameter. The returned object will contain a property namedstockData. -
Passed:The
stockDataproperty includes thestocksymbol as a string, thepriceas a number, andlikesas a number. -
Passed:You can also pass along a
likefield astrue(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 displayrel_likes(the difference between the likes on both stocks) for bothstockDataobjects. -
Failed:All 5 functional tests are complete and passing.
How would I fix this issue?
###Your project link(s)
solution: https://replit.com/@CryptoLover705/boilerplate-project-stockchecker
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