when zero app is deployed on Google Cloud Run everything works except http api calls because they get blocked because of "Mixed Content"
example:
route /api/users (python handler)
fromflaskimportjsonifydefhandler():
returnjsonify(users=[f"u{i}"foriinrange(10)])and some React component with api call at /index.tsx
functionUsers(){const[users,setUsers]=useState(null)useEffect(()=>{fetch('/api/users').then(res=>{const{ok}=res;if(!ok)thrownewError("Error searching users");returnres.json()}).then(data=>setUsers(data));},[])if(!users)return<span>Loading...</span>return(<ol>{users&&users.users.map(u=><likey={u}>{u}</li>)}</ol>);}results in every api call made to /api/users gets 308 HTTP response (Permanent redirect) to the same url/route (dont know why) then gets blocked because they are not using HTTPS
when zero app is deployed on Google Cloud Run everything works except http api calls because they get blocked because of "Mixed Content"
example:
route /api/users (python handler)
and some React component with api call at /index.tsx
results in every api call made to /api/users gets 308 HTTP response (Permanent redirect) to the same url/route (dont know why) then gets blocked because they are not using HTTPS