brilliant-orangeB
Refine2y ago
3 replies
brilliant-orange

how to fix ngrok CORS error?

I paid for ngrok and was issued a fixed domain. CORS occurs when calling from my local ngrok domain API.
  const customergroupsResponse = await fetch(`${process.env.NEXT_PUBLIC_CAFE24_API_URL}/customergroups`, {
    headers: {
      'Content-Type': 'application/json',
    },
  })
Was this page helpful?