CORS Issue When Migrating Project to IDX

You can use your backend API (as localhost) anywhere from idx editor simply by going to idx tab (side button named “Project IDX”) and then scroll down to BACKEND PORT and then there is a lock icon, click onto it and it will convert to orange globe icon, then you can work on that API

NOTE: before going to backend port you have to start your development from terminal by command(npm run dev/ yarn dev/ etc)

1 Like