Describe your issue or question:
We are experiencing a sudden authentication failure on our development environment. Our MetaMask wallet login flow (SIWW - Sign In With Wallet) was working reliably for 4 months, but starting today (March 26, 2026), all authentication attempts are failing with a 401 “Invalid request origin” error from authjs.web3auth.io/siww/verify. Critically: no code changes were made and production still works fine.
What are you trying to build or integrate?
We’re building a Web3-authenticated SaaS dashboard. Users authenticate by connecting their MetaMask wallet via Web3Auth Modal, which signs a message and returns a JWT for our backend. This flow is working perfectly in production.
What problem or error are you facing?
- Environment: Devnet, localhost:5173
- Error:
401 Unauthorizedfromauthjs.web3auth.io/siww/verify - Response:
{"error":"Invalid request origin","success":false} - Status:
http://localhost:5173is already in the Web3Auth dashboard’s “Allowlist for Devnet Environment” - Production Status: Identical code and same devnet client_id work fine in production (
https://domain) - Regression: This worked every day for 4 months until the past few days
Tech stack:
- Frontend: React 19.1.1 with TypeScript
- Web3Auth SDK:
@web3auth/modalv10.15.0 - Wallet: MetaMask
- Network: Sapphire Devnet
- Build tool: Vite
Code snippets:
Web3Auth initialization (unchanged):
export const web3AuthOptions: Web3AuthContextConfig['web3AuthOptions'] = {
clientId: import.meta.env.VITE_WEB3AUTH_DEVNET_CLIENT_ID,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
uiConfig: {
widgetType: 'modal',
},
};
Login handler (unchanged):
const { connect } = useWeb3AuthConnect();
await connect(); // This is where the SIWW call fails
Exact error and logs:
Request to https://authjs.web3auth.io/siww/verify:
POST /siww/verify HTTP/1.1
Host: authjs.web3auth.io
Origin: http://localhost:5173
Client_id: BMOk8NhyqVmonRctwP2B11x4i6spqAu75HsXa9QQK2A5bwQyPQ9mDpthOoiLAMqdi7I1BjrZuuwr2akUf3z7tq0
Web3auth_network: sapphire_devnet
Wallet_provider: metamask
Response: 401 Unauthorized
{"error":"Invalid request origin","success":false}
Package details:
- `@web3auth/modal ^10.14.1 (installed 10.15.0)
@web3auth/auth: v10.8.0 (dependency)- Project: Kryptac (sapphire_devnet)
Additional context:
- We verified the allowlist configuration multiple times and even removed/re-added
http://localhost:5173 - The production deployment uses the same client_id and same code but with an
http://domain — it works without issues - This suggests the devnet SIWW service may have either:
- Enforced HTTPS-only origins (which would break HTTP localhost)
- Had a configuration change or incident in the past couple of days
- Changed how it validates the
Originheader
Could you advise if there was a recent change to the SIWW endpoint or devnet infrastructure today?