Adding Authorization Header When Loading Remote Entry in Module Federation #3531
Unanswered
BillZhang078
asked this question in
Q&A
Replies: 2 comments
-
You should be able to leverage the runtime plugin to await the resolve of the federated remote. I believe @ScriptedAlchemy has an example somewhere for this. We all talked about it here in the redesign discussion. @ryok90 I believe we should make an example using it as well. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can do it with a runtime time plugin. LoadEntry hook should let you. Or create script hook. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I’m working with Module Federation runtime, and our micro apps are all behind a gateway. We want to ensure that the client sends an authorization header when loading the remote entry for each micro app.
Is it possible to modify the request for loading the remote entry so that we can add an authorization header on the client side? If so, could anyone provide guidance on how to implement this?
Beta Was this translation helpful? Give feedback.
All reactions