401 unauthorized when loading JS from public folder
Unanswered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
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?
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
@Schneider’s Smooth-fronted Caiman 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?
If it works everywhere but Safari, issue must be the feature you are using that isnt supported by the Safari https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Page_structures/Compatibility_tables You can see the list of such features here