Hi Auth0 Community,
I’m currently integrating the Auth0 SPA SDK into a local project, but I’m consistently running into an issue where the SDK fails to load. Here’s what’s happening:
Issue:
The following error appears in the browser console:
Auth0 SDK failed to load
(index.html:60)
When inspecting the request, I see a 403 Forbidden on:
https://cdn.auth0.com/js/auth0-spa-js/1.26/auth0-spa-js.production.js
I also tried:
https://cdn.auth0.com/js/auth0-spa-js/2.0/auth0-spa-js.production.js
https://cdn.jsdelivr.net/npm/@auth0/auth0-spa-js/dist/auth0-spa-js.production.js
But either get 403 errors or the SDK still doesn’t load properly.
What I’ve tried:
- Switched to jsDelivr CDN (same result)
- Used a local server (
python3 -m http.server 8080
) - Tried different browsers (Chrome, Firefox)
- Disabled ad blockers, VPNs, privacy extensions
- Tried loading the SDK directly in the browser (also failed or 403)
- Attempted offline usage by downloading the script manually (no success)
- Network seems fine otherwise
My Question:
Is there a new preferred CDN link or a configuration I’m missing?
Are there IP blocks or region issues I should be aware of?
Any advice or a working, current SDK URL would be super helpful. Thanks in advance!
Environment:
Local testing environment HTML + JS (no framework)
Tenant: dev-tnhr6w3ixu052ugm