Replies: 1 comment 1 reply
-
|
I'm aware that this request is about setting headers in general, but I'm not sure it's a good idea to set the That said, this might be a bit off-topic, but why can't you use cookies in an iframe? I haven’t worked with MS Teams apps specifically, but in some projects, I've had to deal with apps running inside iframes. There are some limitations, but cookies (with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Suggestion: add a way to intercept or configure each fetch call made to remote functions. Especially allow request headers to be set, e.g. for setting the
AuthorizationScenario
As I explained in the original discussion on remote functions, we have a couple of apps that could really benefit from remote functions. But those apps cannot reliably use cookies because they run as Microsoft Teams Apps in an iframe. As much as I'm unsatisfied with the nature of MS Teams apps, it is what we have to deal with.
Because we cannot use cookies, our apps have to rely on headers for authentication (eg Bearer token in an
Authorizationheader). Currently, we have no access to the underlying fetch call when using remote functions.Alternatives
Issues/open questions
form(when no fetch is involved)Final words
I'm sorry if this topic has been discussed anywhere else except for the remote functions thread I mentioned above. I couldn't find anything regarding the current state of this issue. My latest status is Rich saying "Yeah, intercepting the fetch rather than the query is a possibility"
Beta Was this translation helpful? Give feedback.
All reactions