i've been trying to parse the data from the student_learn field in firestore and map it to jsx components but i get a cors-origin error here is a screenshot of the collection i'm trying to fetch from.
CORS will block the request. You will not receive a response (no status code) since no request were made.
The only way to fix CORS is by setting the correct header on the server that you're fetching. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
There can be 2 reasons for this error (as I know):
JSON.parse(). (most likely as you're using JSON.parse())
check your data befor parsing it (must be a valid stringified json)