Closed MiamiYukiYuri closed 6 months ago
While making an axios get request for game ads I get an error in backend saying that I require full authentication to access this resource, when this endpoint is supposed to have open access (tried both /gameads and /gameads/all). Also tried making the request while being logged in, and with adding "withCredentials: true" in the axios getter, with no luck.
Why does it not funk? Please halp.
onClick event should make a get request to /gameads/rollthedice and show random gameAd show random ad at top of page should be reset? you might want some state to check if its true or not...
Add functionality to the Roll the Dice-button by giving the component a true or false state with the "useState" React hook.