CORS issue on authentication
I have a server set up with the API running on port 448 (https). I'm getting this error:
Access to XMLHttpRequest at 'https://thehatchery.io:448/auth/me' from origin 'https://thehatchery.io' 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....
How can I protect a page?
I created a form. After stripe payemnt the user is successfully sent to the form. Unfortunately anyone with the URL can access the form. I want users who have made a stripe payment to be able to access the form and submit one time. Can anyone point me in the right direction? TY in advance, Kelly
Making sure www.<mysite>.com redirects to https://<mysite>.com?
@kapa.ai
This isn't really a wasp question as such (although it is a wasp app). I noticed my website only works with https:// in front and the www doesn't redirect after I deployed it on fly.io. What should I check to repair this?...
This isn't really a wasp question as such (although it is a wasp app). I noticed my website only works with https:// in front and the www doesn't redirect after I deployed it on fly.io. What should I check to repair this?...
What environment vars need to be set in order to deploy for production
Hi what environment variables need to be set in order to deploy for production? e.g:
plausible? sendgrid? google analytics?...
How do i implement the stripe webhook in production
in the guide it tells how to implement stripe webhook in development, but how do i get this for production, opensaas.
Payments gateway
Hi ,
I would like to inquire about the possibility of integrating with any other payment gateway. Will the method be complicated?...
Hide Loged User Navigation Bar in Onboarding Page
Heyy @kapa.ai I created an onboarding page, that is when the user comes from the register, I want to hide the navigation bar only for this page, I'm working with the SaaS template
Username and Email field in the User model
I have a question regarding the User model, which I'm not sure it if's part of the standard Wasp setup or OpenSaaS specific.
By default, they contain the user's email.
I'd like the user to be able to change their username, as there is no need to repeat the same information twice, but I want to make sure it's safe to do so.
...
Full stack type safety wasp 0.13 to 0.14
I am having trouble with some errors that appeared when i migrated from wasp 0.13 to 0.14. I seem to have lost all the types that came for example with the useQuery function and therefore i get type errors all over my code. I followed every step in the migration guide but nothing seems to solve these issues.
Best way to integrate a blog
I need a blog for my website. I would like to avoid using a subdomain for SEO purposes. Any recommendations for how this should be approached?
CORS error on gitpod
Access to XMLHttpRequest at 'https://3001-nitishymtpl-helm-3ff7gtw693e.ws-us116.gitpod.io/auth/me' from origin 'https://3000-nitishymtpl-helm-3ff7gtw693e.ws-us116.gitpod.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Hi, I am receiving above error on gitpod. I have made corresponding changes in .env.client and .env.server file. Pls let me know the way to fix this issue....
CORS Error deploying to fly.io
Hi, I am facing an error when I try deploying using the launch and deploy commands. What environment variables are needed on the client, server, and db containers on fly.io for them to all talk to each other successfully? @kapa.ai
Action in loop
After modifying this:
`export const updateCurrentUser: UpdateCurrentUser<Partial<User>, User> = async (args, context) => {
if (!context.user) {
throw new Error('Usuario no autenticado');...
syntax of importing from wasp
Hi I am pretty newbie to typescript and wasp, I have python experience though. I was asking chatgpt to create a simple function to try and call my python backend. I am in the process of combining them.
```import { action } from '@wasp/actions'
export const analyzeData = action({...
Failed to load resource: A server with the specified hostname could not be
I deployed my app and am able to navigate to the webpage: https://my-wasp-app-client-damp-snowflake-7739.fly.dev
However, I get this error repeatedly in the console. Have googled extensively. I cant sign in or do any of the app functionalities behind the auth....
Email with MailGun
Hello everyone, I could successfully use sendgrid in my app, but if I try to use MailGun it doesn't recognize it like it did with Sendgrid. I built it on top of opensaas.
Did anyone used MailGun?...
TypeScript Error: Property 'pages' Does Not Exist on Story Type
I’m working with the getGeneratedStories function, and I’ve included the pages in the query like this:
`export const getGeneratedStories: GetGeneratedStories<void, Story[]> = async ( _args, context,...
- SDK build failed with exit code: 2
Heyy @kapa.ai
`
[ Wasp ] ext-src/dashboard/monthlyPlans/MonthlyPlanOperations.ts(19,32): error TS2339: Property 'map' does not exist on type 'never'.
[ Wasp ] ext-src/dashboard/monthlyPlans/MonthlyPlanPage.tsx(44,15): error TS2322: Type '(plan: MonthlyPlan & { trainingDays: TrainingDay[]; }) => void' is not assignable to type '(plan:
GetResult<{ id: number; name: string; startDate: Date; userId: string; }, unknown> & {}) => void'....
Quickest way to locally host for public
Is there any fast way to locally host my wasp project to someone outside my network?
For example, how would I set-up ngrok for a wasp app?...