Sylte
Sylte
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Sylte on 11/19/2024 in #questions
Cors-like error in server actions + github codespaces
Hey, for various reasons I some times use github codespaces to develop. I’m struggling with this error when calling server actions from the client.
`x-forwarded-host` header with value `domain…-3000.app.github.dev` does not match `origin` header with value `localhost:3000` from a forwarded Server Actions request. Aborting the action.
POST /testing 500 in 7ms
Error: Invalid Server Actions request.
at AsyncLocalStorage.run (node:async_hooks:346:14)
at AsyncLocalStorage.run (node:async_hooks:346:14)
digest: "4009385968"
`x-forwarded-host` header with value `domain…-3000.app.github.dev` does not match `origin` header with value `localhost:3000` from a forwarded Server Actions request. Aborting the action.
POST /testing 500 in 7ms
Error: Invalid Server Actions request.
at AsyncLocalStorage.run (node:async_hooks:346:14)
at AsyncLocalStorage.run (node:async_hooks:346:14)
digest: "4009385968"
5 replies
TTCTheo's Typesafe Cult
Created by Sylte on 5/14/2023 in #questions
Caching blog-like pages
We’re building a site with next.js and Strapi for the CMS, hosting on Vercel. Expect somewhere from 50-100k unique monthly users and wanted to know how to add caching to the blog-like pages. Using getServerSideProps for API calls to strapi to get the data required to generate the page. Any pointers for what to do / where to read?
8 replies