H
Honoigmtink

How to set "credentials: true" in client side using rpc?

I'm using rpc with react query on the client side, this kind of fetching has already credentials: true?
No description
igmtink
igmtink26d ago
It's not sending the cookie to my client side
No description
No description
Nico
Nico26d ago
Are they running on different ports? There’s browser extensions like allow cors that will let you set it on different ports
igmtink
igmtink26d ago
yes, actually I already set the cors with origin: localhost:3000 for my client also set the credentials to true
igmtink
igmtink26d ago
No description
igmtink
igmtink26d ago
No description
Nico
Nico26d ago
Can you text and postman and see if it’s coming through
igmtink
igmtink26d ago
here's my client
Nico
Nico26d ago
I always had wired issues when working on different ports
igmtink
igmtink26d ago
on the postman there's no problem at all when I request my login to send the cookie and then I request to my user route that there's verify my cookie it's okay there's no problem and I forgot to mention when I'm using fetch api it's sending the cookie to my client, but when I use the react query with rpc I can only see the cookie from network on the chrome dev tool but in the application tab I can't see the cookie
igmtink
igmtink25d ago
GitHub
Setting a cookie using (rpc + react query) · honojs · Discussion #2...
I'm sending a request to my login api endpoint from to client using react query and rpc but I'm not getting the cookie from my application tab in chrome dev tools but on the network tab the...
igmtink
igmtink25d ago
when I'm using standard fetch api with credentials: 'include' option, there's no problem at all I got the cookie from server to client, but when using rpc I can't get the cookie from server to client
igmtink
igmtink25d ago
I already fixed, by adding this fetch option, why this option is not included on the docs? I mean there's fetch option in the docs but the example is only for using env
No description
Want results from more Discord servers?
Add your server
More Posts
Cookies doesn't processWhen I try to run in my middleware the following ``` setCookie(c, 'test', 'res', { maxAge: 60 * 60 use Context to get vars from wrangler.tomlhow can fix this code. i want to use my openaiApiKey from the wrangler.toml when i create an openai Connect Hono Cloudflare with MongoDBHi. I am using Hono and deploying to Cloudflare. However I am unable to find a way to connect mongodCase insensitive query paramsWe are using hono-zod-openapi to replace an existing API. Sadly the old API (written in ASP.Net) appPassword hashingHow to hash password?How to setup Hono with Remix/Cloudflare for Vite dev server?From the documentation for Cloudflare Pages, there is an adapter and a plugin, but it is not clear hValidate response objectsUsing the zod validator middleware it is possible to validate params , query, request body like: ``Hono Oauth Provider with JWT issueHey everyone! I'm not sure if this is the right place for me to post about this but recently I wanteDeploy Hono / Bun APII know, I know this is such a newby question but I come from small express apps and other simple ‘clIs there a way to list all request headers ?I have this use case where I am not sure which header key is being sent, I would like to log all heaTyping Middleware JWT and othersCurrently I am trying to type the `c.get('jwtPayload')` that is documented [here](https://hono.dev/mHow to generate openapi.yaml spec with Zod OpenAPI Hono?Is it possible to generate the openapi.yaml spec with Zod OpenAPI Hono from the commandline using a Why use Hono for Next.js backend (route handlers)?I'm creating a full-stack web app and probably using Next.js API/route handler: https://nextjs.org/dContext not finalizedIm trying to build a S3 API and it returns this on every requests ```js Error: Context is not finalType checking with Hono + prisma + zod -> return json date (expect string)HI, i m usin openAPi I declared return params in my route ``` const getUserRoute = createRoute({ Deploying Hono App to Multiple RuntimesHow can I deploy my Hono app to multiple different runtimes simultaneously within the same project? Sourcemap Support for Sentry MiddlewareThere's some way to improve the DX of using Sentry with Hono? I'm receiving the issues on my Sentry Does Hono Cloudflare Pages work with `@supabase/supabase-js`?## Logs These were my errors on `bun run dev`, full logs attached. ```bash 9:21:29 PM [vite] Error wWelcome To The Hono Help ForumWelcome to the dedicated forum for Hono help. This platform is designed to ensure your questions abo