Dom
WWasp
•Created by Dom on 1/14/2025 in #đŸ™‹questions
Updating CORS settings for myapp-server
Hi everybody, currently playing around with my webapp beta version on fly.io and I wanted to connect it to my custom domain. Did anyone ever try to update the CORS settings for the myapp-server part of a Wasp app?
I have my webapp hosted on fly.io and have successfully added a certificate to route my custom-domain.com traffic to the myapp-client.fly.dev domain. This works like a charm, however this is not compaible with the myapp-server since it does not allow my custom-domain.com to access it. My browser terminal gives me a 401 error from myapp-server, so it is a CORS issue. How can I fix this? From my understanding, all i would have to do is add custom-domain.com to the allowed domains, right? I could already gather that localhost is set by default from issues on GitHub (https://github.com/wasp-lang/wasp/issues/94, https://github.com/wasp-lang/wasp/pull/206), but did not find a way to manually add my custom-domain before deploying.
I also tried adding a certificate to myapp-server hoping that would fix it, but this alone is not sufficient.
Any pointers on this would be greatly appreciated. Thanks in advance! đŸ’ª
7 replies
WWasp
•Created by Dom on 12/2/2024 in #đŸ™‹questions
Signup/Login missing in deployed Wasp app
43 replies