CORS error for wix sdk

Question:
How do i set cors policy in wix headless next js project.

Product:
i am usig wix headless solution for ecomerece and its sdk to create an ecommerce

What are you trying to achieve:
getting cors error when fetching on front end, used to work perfectly fine previously, getting error since today only

What have you already tried:
i am using sdk mentioned in wix headless documentation and cant find any solution to apply cors policy

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]

I also got this problem as of today. Worked perfectly fine yesterday!

I have contacted the support, hope this will get resolved!

let me know if you hear anything from them
as it is only happening on front end. if i fetch data on server side using next js i dont get error

I got a reply in the discord that they are on it!

its good to hear problem is from there side not our :grinning:

It should be resolved now!

1 Like