Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

This is my middleware.js file for the front end in Next.js. I want to create protected routes so that if a user doesn't have an access token, they are redirected to /. However, the cookies from the ...
Rahul Joshi's user avatar
0 votes
0 answers
701 views

I have a problem with my portfolio site: https://www.frontendpolska.pl/pl. I can't test the site in PageSpeed Insights—I keep getting the error: RPC::DEADLINE_EXCEEDED: context deadline exceeded or a ...
Алексей Коба's user avatar
0 votes
0 answers
39 views

I am new to strapi I am working on a user table that I wanted to have a discount code which is 8-digits like AKOF03SF for each user that code would be generated when the user entry is created and it ...
tsacarm's user avatar
  • 21
2 votes
1 answer
134 views

What I need is to use prefix() with Middleware simultaneously within Laravel. For example this code: Route::prefix('admin')->group(function () { Route::get('/users', function () { // ...
zockchin's user avatar
0 votes
0 answers
99 views

My website has translations, and I want to translate my error pages. But I translate my pages with a dynamic route (/app/[locale]) and not-found.tsx must be at the root (app/not-found.tsx). I don't ...
Bob's user avatar
  • 1
0 votes
0 answers
29 views

I'm implementing custom JWT authentication in Django and I'm using middleware to decode the JWT token and assign request.user to the authenticated user. However, when I try to access request.user ...
Nasir uddin Sabbir's user avatar
0 votes
0 answers
114 views

Folks, I have spent days trying to figure out the error: POST /auth/v1/token?grant_type=refresh_token HTTP/1.1" 400 93 "-" "Next.js Middleware Basically, I have a nextjs web app ...
AKHIL HAKKIM's user avatar
0 votes
1 answer
125 views

I'm implementing role-based access control in a Next.js app using Drizzle ORM, Supabase (Postgres), and Auth.js. My middleware isn't receiving the user's role from the JWT token (request.auth.user....
Rana Adeel Tahir's user avatar
3 votes
1 answer
115 views

I have a redirect middleware. This middleware checks if the path is defined in our Redirection module table. Normally, when a page exists (200) say http://localhost/existing-page, I can redirect the ...
Exarillion's user avatar
1 vote
1 answer
89 views

I’m working on a multi-tenant application using NestJS and Prisma. I want to dynamically set the databaseUrl based on the subdomain from my Next.js frontend. For example, if the subdomain is tenant1, ...
Abdulaziz mohammed's user avatar
0 votes
1 answer
234 views

There is a special route in Vite (+ SvelteKit) /__open-in-editor?file=SOURCE-FILE-PATH that opens the source file in an editor (like VS Code.) Is it possible to override this route? I would like to ...
Leftium's user avatar
  • 18k
1 vote
0 answers
89 views

I am building a Node.js server using Express, and I have defined a couple of routes like this: const express = require('express'); const app = express(); app.get('/api', (req, res) => { res.send(...
Drashti Chabhadiya's user avatar
0 votes
0 answers
52 views

I'm trying to know if a user is banned from my middleware and redirect it to a custom error page. The problems happens when I make the query to the DB from Drizzle ORM, I have created an async ...
Amtr4x's user avatar
  • 1
0 votes
1 answer
57 views

I am trying to implement a middleware function in an actix-web project. Here is the code for the middleware function, along with two helper functions: pub async fn validation_middleware<B>( ...
Princeton Ebanks's user avatar
0 votes
1 answer
95 views

I'm attempting to make a middleware for making API calls to a separate server but failing to make a redirect/rewrite. Paths which starts with /api/proxy should be written without that prefix and route ...
droid001's user avatar
  • 172
1 vote
1 answer
50 views

I’m using Laravel Sanctum for API authentication, and I’m trying to check if a personal access token exists using the findToken method. However, it's always returning null even though I’m passing what ...
amoke's user avatar
  • 11
1 vote
1 answer
926 views

I am trying to remove the Server Header from the HTTP response in my application. I’ve seen quite a bit of information online and tried several things, but none have worked. I’ve tried using the ASP....
Julio Escudero Cuesta's user avatar
0 votes
1 answer
247 views

In below NextJS code how can i access Authorization in middleware when client component call API every time api is call it show empty headers in middleware can some on explain it Client Component:- '...
GAMING WARRIOR's user avatar
0 votes
0 answers
34 views

I have a middleware sitting between the client and /api/Blog/[id]/route.js async function GET(){...} import { NextRequest, NextResponse } from "next/server"; import authenticate from "....
Zheng Jiawen's user avatar
0 votes
0 answers
43 views

I'm building a Next.js(14.2.5) web app with Auth.js (Next-auth ^5.0.0-beta.20) for authentication and Prisma (client version 5.18.0) as an ORM. I have extended the session to include 2 extra ...
Carlos's user avatar
  • 3
0 votes
0 answers
327 views

Clerk middleware is causing issues on the production website, but works correctly in my local development build. I need the middleware to lock the user on either the authentication page or the form ...
leo's user avatar
  • 183
1 vote
0 answers
19 views

I am using Laravel Passport for token authentication and facing an issue where $tokenResult is null. I suspect the default rate limit (throttle:60,1) is exceeded, so I temporarily modified the vendor\...
V K's user avatar
  • 11
0 votes
1 answer
230 views

I have an existing middleware that handles the auth. Now i am trying to add the next-intl to my project. However i am having a hard time combining both of them. I followed their tutorial and ...
Assad Rajab's user avatar
3 votes
0 answers
567 views

I'm encountering an issue when making a fetch request inside a middleware in my Next.js application. When I try to fetch data from localhost:3333, I get the following error: [TypeError: fetch failed] {...
Cowwde's user avatar
  • 61
0 votes
1 answer
85 views

I work with Oracle SOA Suite (Oracle fusion middleware 12c and 11g), combined with weblogic 12c, Azure pipelines, git repository, and SOAtest from parasoft as testtool. I want to be able to change ...
Jesper Vernooij's user avatar

1
2
3 4 5
94