Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nildunhill's avatar

Project IDX Config

Hello guys!! so i tried to run my inertia application using Project IDX from google. But apparently when i tried to access the application it's always return a CORS error. Something like this

Access to script at 'https://9000-idx-project.cluster-qpa6grkipzc64wfjrbr3hsdma2.cloudworkstations.dev/_workstation/forwardAuthCookie?_workstationRedirectOrigin=https%3A%2F%2F8000-idx-project-1726536688784.cluster-qpa6grkipzc64wfjrbr3hsdma2.cloudworkstations.dev&redirectToken=5kJH-pMehFbJwpSK2AYHoQ' (redirected from 'https://5173-idx-project-1726536688784.cluster-qpa6grkipzc64wfjrbr3hsdma2.cloudworkstations.dev/@vite/client') from origin 'https://8000-idx-project-1726536688784.cluster-qpa6grkipzc64wfjrbr3hsdma2.cloudworkstations.dev' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
8000-idx-project-1726536688784.cluster-qpa6grkipzc64wfjrbr3hsdma2.cloudworkstations.dev/:21 

Did anyone worked with project idx before?? maybe i miss some configuration??

1 like
2 replies
min-sm's avatar

did you able to find the problem? i found this video on youtube https : // youtu . be / xm5BEtp6ABc?si=LUsi0HWCcnFiIolY&t=193 though. i have tried it but it doesn't work for me.

pablomac's avatar

Just in case anyone else comes across this. I think it was an issue that has since been solved. There should be a tab button in the left hand side menu called 'Firebase Studio' (the new name for IDX). From there you can view your backend ports. Make your port public and the CORS issue should go away.

https://firebase.google.com/docs/studio/troubleshooting#app-backend

1 like

Please or to participate in this conversation.