Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

IAP with LB and cloud run cross origin resource policy error

Hello community, 

I have a problem with IAP with Application Load Balancer and cloud run as backend. 

Getting this error Screenshot 2024-04-01 180021.jpg

Already tried to add custom headers to LB, but no luck

andreybu_0-1711983718747.png

Also tried to add next policy to IAP, also not working for me

gcloud iap settings set iap.yaml --project=competitions-staging --resource-type=compute

gcloud iap settings set iap.yaml --project=competitions-staging --resource-type=iap_web

cat iap.yaml
access_settings:
cors_settings:
allow_http_options: "true"

 

Could someone please help with this issue

1 4 1,017
4 REPLIES 4

I also found and enabled this setting in IAP Backend Services but it doesn't help

andreybu_0-1712061503699.png

After page refresh error disappear but after clearing cookies I see it again

Any suggestions? I'm really stuck with it, will be very appreciate for advises and help 

Did you ever find a solution this? @andreybu 

Hello @AustinKP, sorry for delay with answer. We've reconfigured our application with viteSingleFile plugin as a single file and problem gone 

https://stackoverflow.com/questions/67781170/bundle-js-and-css-into-single-file-with-vite

Top Labels in this Space
Top Solution Authors