i'm implmenting micro frontend and i need to fetch some data from other micro frontend but then i got cors error. to solve this i use this code in the source micro frontend :
headers: { "Access-Control-Allow-Origin": "*", }
maybe someone has the same issue with me.
hi, can you share the file please. I'm using vitejs, for the same thank you, and I can't fix the cors.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
i'm implmenting micro frontend and i need to fetch some data from other micro frontend but then i got cors error. to solve this i use this code in the source micro frontend :
maybe someone has the same issue with me.
hi, can you share the file please. I'm using vitejs, for the same thank you, and I can't fix the cors.