Next.js Discord

Discord Forum

401 unauthorized when loading JS from public folder

Unanswered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Open in Discord
Schneider’s Smooth-fronted CaimanOP
Hi,

I have a library which is not available on npm stored in my app's public directory. I am loading this library with Script.

It's working on all browsers except on Safari where I get 401 Unauthorized error for path www.myapp.com/mylib. mylib is actually present in the page sources.

Does anyone know any reason why is this so?

1 Reply