linus
linus
WWasp-lang
Created by linus on 10/14/2024 in #đŸ™‹questions
CORS issue
I've tried doing
export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
// Allow all domains for CORS
middlewareConfig.set('cors', cors({
origin: "*", // Allows all domains
credentials: true, // Important for sessions or basic auth
allowedHeaders: ['Content-Type', 'Authorization'],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS']
}));
return middlewareConfig;
};
export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
// Allow all domains for CORS
middlewareConfig.set('cors', cors({
origin: "*", // Allows all domains
credentials: true, // Important for sessions or basic auth
allowedHeaders: ['Content-Type', 'Authorization'],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS']
}));
return middlewareConfig;
};
and reran wasp deploy fly deploy, still getting the CORS error. help, i've been stuck at this for 3 hours...
16 replies
WWasp-lang
Created by linus on 10/14/2024 in #đŸ™‹questions
CORS issue
@Wasp Team
16 replies
WWasp-lang
Created by linus on 9/15/2024 in #đŸ™‹questions
How do I connect to the postgres db deployed on fly?
I don't have a DATABASE_URL set up in the .env.server file, do i need one for production?
8 replies
WWasp-lang
Created by linus on 9/9/2024 in #đŸ™‹questions
Trouble with forms...
@martinsos thanks for the input! i tried react-select as well, reopening to add options to the list is not very user-friendly imo, so i decided not to use it :/
8 replies
WWasp-lang
Created by linus on 9/9/2024 in #đŸ™‹questions
Trouble with forms...
i don't want to implement my own required attribute logic, seems so unnecessary... just wondering why so many modern ui libraries don't support multiselect dropdown, like chakra, shadcn, is this not a common component??
8 replies