David
David
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
no, in godaddy there is a forwarding tab, next to dns settings. There you can add the subdomain and its redirection address.
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
I forwarded .www subdomain to the main domain via godaddy.
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
Huge thanks, it's working now!
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
Do I have to revert this part of the deployment docs for adding www subdomain? I can delete the CNAME, but do I have to change anything on server side? wasp deploy fly cmd --context client certs create www.mycoolapp.com
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
I'd prefer using a redirect if it's possible with my setup: fly.io & godaddy.com for the domain. Any info on this?
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
Wouldn't it be better to redirect subdomain to the main domain for SEO as well? So google doesn't create 2 rankings or smth
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
@kapa.ai The only reason I can think of to keep www is for older users who are used to adding www. before urls. But redirection via DNS is also not possible afaik. How does wasp handle such redirections?
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
yes, I have the exact same issue đŸ˜„ @miho should we solve this by redirecting www subdomain to the actual domain or with middleware as @kapa.ai mentioned?
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
I redeployed and now the issue appears only on the www. subdomain. Is there a way to include a subdomain in the WASP_WEB_CLIENT_URL env var? Or how should I approach this?
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
actually I might have passed the www subdomain into the env secret, could this cause such issue? I'll confirm once I get home
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
I guess I'll try to deleting the fly.io project and deploying again once I get home from work. Is there anything else I could try beforehand?
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
No description
42 replies
WWasp-lang
Created by David on 7/30/2024 in #đŸ™‹questions
Deployed /auth/me blocked by CORS policy
Should I be adding the global middleware? Seems odd that /auth/me doesn't work out of the box
42 replies
WWasp-lang
Created by David on 4/29/2024 in #đŸ™‹questions
File upload size limit
Thanks for the help!
28 replies
WWasp-lang
Created by David on 4/29/2024 in #đŸ™‹questions
File upload size limit
good point, gonna do this once I get to prod
28 replies
WWasp-lang
Created by David on 4/29/2024 in #đŸ™‹questions
File upload size limit
alright, fair enough.
28 replies
WWasp-lang
Created by David on 4/29/2024 in #đŸ™‹questions
File upload size limit
yeah, but couldn't users "hack" the bucket by sending requests from their own localhost:3000 or smth? I guess I'm just paranoid about the security as I'm quite inexperienced with web dev.
28 replies
WWasp-lang
Created by David on 4/29/2024 in #đŸ™‹questions
File upload size limit
I like this kapa guy, he gets me đŸ˜„
28 replies
WWasp-lang
Created by David on 4/29/2024 in #đŸ™‹questions
File upload size limit
Also how do you go about handling the dev & production enviroments with CORS? Do I just set up 2 aws buckets one for dev that allows localhost:3000 and another one for production that allows the actual domain?
28 replies
WWasp-lang
Created by David on 4/29/2024 in #đŸ™‹questions
File upload size limit
Also you need to manually install "@aws-sdk/s3-presigned-post" as it doesn't come with Open SaaS by default. Leaving this here in case someone finds it useful in the future. P.S. I've been writing C# for past 10 years so pardon my poor typescript đŸ˜„
28 replies