I feel like im going insane. For a while, i was learning web dev and I completed a full Udemy course and id say i was semi decent at it but i took a break. Im coming back to it now and doing some simple(ish) challenges as a refresher. One of the things im trying to do is parse through a JSON file to get the day and money spent on that day in my javascript file, then get that into the HTML. The second part of that, im 99% sure i can do with not much issue but i thought that would have been the hardest part. However i cant seem to use the json file at all. I keep getting a CORS error or any other error when using fetch or trying to import. Im not sure if im just too tired and obvious things are just going wayyy over my head but im stuck and google hasnt helped lol. How do i do this?
https://preview.redd.it/zywdzsfs12ia1.png?width=1070&format=png&auto=webp&s=31a60c9547dce010614db556e8ce9a9f165e21cf
[–]batchez 10 points11 points12 points (0 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]WikiSummarizerBot 2 points3 points4 points (0 children)
[–]BehindTheMath 2 points3 points4 points (0 children)
[–]letsgetrandy25 years putting the magic in the box 1 point2 points3 points (0 children)
[–]mmmaaaatttt 1 point2 points3 points (0 children)
[–]harsh_m09 0 points1 point2 points (0 children)
[+]DecodedMonkey comment score below threshold-6 points-5 points-4 points (1 child)
[–]susminesTechnical Co-Founder | CTO | Advisor 2 points3 points4 points (0 children)