Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
85 views

I want to pass the data from the NextJS middleware to the client component. I am using NextJS for the frontend, and an Express API for the backend. I could do it with X-Headers but what I want to send ...
Best practices
0 votes
3 replies
73 views

Adding [ApiController] on a controller class has various benefits. Especially the automatic model validation and problem details parts. The problem with this attribute is that it's easy to forget to ...
LLL's user avatar
  • 3,781
1 vote
0 answers
43 views

I'm deploying a Bun + Express application to Vercel. Locally, my Express app works perfectly with routes defined in separate files and imported into index.ts. However, on Vercel, the deployment ...
Advice
0 votes
0 replies
58 views

I'm building an HR Management System using: Backend: Laravel Frontend: Next.js Authentication(SPA): Laravel Breeze (already set up for backend) I'm a beginner in Next.js, and I’m a bit stuck on how ...
1 vote
1 answer
86 views

I am doing unit testing for my project. This is the code I want to test: import { create } from "zustand"; import { persist } from "zustand/middleware"; interface LanguageState { ...
-4 votes
1 answer
74 views

I need want to send the only authenticated user to the /chat route in next js how to do ut using the middleware? Although I created a middleware and place it inside the root folder it dosen't detect ...
2 votes
1 answer
92 views

I’m building an authentication system with Express + JWT + Cookie. I have a middleware userAuth that decodes the token and puts the userId into req.body. Here is the code: import jwt from "...
2 votes
1 answer
136 views

This is the code below. I want to test a request coming in that has part of its path prefixed by external means. This middleware removes it before servicing the request. app = FastAPI( title="...
0 votes
0 answers
55 views

When deployed, it fails Cookie validation Bypass Vercel firewall rules for API routes even though cookie + header is seen from the browser middleware.ts import { NextResponse } from 'next/server'; ...
0 votes
0 answers
47 views

I'm trying to follow the basic tutorial provided by NextJS to setup a middleware for my API. When trying to restrict origin (for testing purposes) to http://localhost:3000, the request.headers.get('...
0 votes
2 answers
258 views

I’m working on a Next.js 14 app with the App Router and next-auth@5. I followed the official Next.js Learn guide on authentication, except I replaced email with username in the database. I set up ...
-1 votes
0 answers
27 views

I understand that middleware functions in Express use the (req, res, next) signature and are added using app.use() But since a route handler also receives (req, res) or even (req, res, next), is it ...
0 votes
1 answer
159 views

I was recently in a technical discussion with a senior developer and was asked: What is the difference between RequestDelegate and Middleware in ASP.NET Core? I have already visited the following ...
2 votes
1 answer
194 views

I'm working on an ASP.NET Core Web API where I use session middleware with a configured idle timeout, e.g.: services.AddSession(options => { options.IdleTimeout = TimeSpan.FromMinutes(20); }); ...
0 votes
1 answer
109 views

I'm new to TYPO3 v13 and am currently trying to write a small login middleware, really simple at first. But somehow I can't get any further with $request->getAttribute(‘fe_user’). It always returns ...

15 30 50 per page
1
2 3 4 5
...
311

AltStyle によって変換されたページ (->オリジナル) /