Cloud Run is properly serving my application over HTTPS, but the JS & CSS assets are being loaded via HTTP so the browser blocks them.
I include the assets like so:
<script src="[[ url_for('static', path='/js/bundle.js') ]]"></script>
In my Dockerfile I have:
CMD ["uvicorn", "main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "8000"]
which as I understand is the solution but the issue persists.
Hi @tim-snyder-wust,
Welcome to Google Cloud Community!
The issue of your browser blocking JS & CSS assets served over HTTP on your Cloud Run application can be solved by:
Make sure your Cloud Run service exposes port 443 and clear your browser cache to ensure it fetches latest configurations.