0

I have an admin panel that is loaded on admin.example.local. It's in React. I also have a site that is loaded on example.local. It's in Qwik.

I have a button in my admin panel that sends a fetch POST request to my site.

In other words, a fetch request would be sent from admin.example.local to example.local.

The problem is that it works on my local machine. But when I publish it it breaks, and admin.example.com can not access example.com.

I'm using Express to deploy my Qwik application. I think CORS might be preconfigured in Qwik in the development enrivonment.

Why CORS works on my local Qwik project?

Hasan
  • 19
  • 2

0 Answers0