WaspW
Wasp•12mo ago
ein

Deployment Error

Hey Wasp community! đź‘‹

I'm deploying an OpenSaaS app to Fly.io from my M1 MacBook Pro, following the standard deployment docs:

  1. Ran: wasp deploy fly launch myApp dfw
  2. Set my environment variables (Google OAuth, SendGrid)
  3. Updated OAuth redirect URLs in Google Cloud Console
The deployment seems successful, but I'm getting CORS errors when trying to access the app:

Access to XMLHttpRequest at 'https://myApp-server.fly.dev/auth/email/signup' from origin 'https://myApp-client.fly.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.


I've followed the deployment docs exactly and avoided any manual configuration since Wasp is supposed to handle this automatically. Has anyone else encountered this CORS issue with Fly.io deployment? Any suggestions that don't involve manually editing configuration files?

Thanks! 🙏
Was this page helpful?