utilities
utilities copied to clipboard
Authenticated Access to Remote Modules
My team is looking for a way to fetch remote modules from an authenticated HTTP endpoint.
This doesn't appear to be possible for the loading method used by webpack's __webpack_require__.l
, which simply creates a <script src={libraryUrl} />
tag (which makes it impossible to e.g. inject auth headers).
Do you have any recommendations?