Forum Discussion
Yannie
Jan 19, 2022Copper Contributor
MS Teams Application HTTP Context Session Changed when Postback
I have a MS Teams App that contains tab for opening SharePoint Add-ins (Provider-hosted) pages. When using MS Teams Desktop and web, the session always changes when Postback and failed to get ShareP...
Yannie
Feb 09, 2022Copper Contributor
ChetanSharma-msft, I have sent through Private message for all info I have on my side.
ChetanSharma-msft
Microsoft
Feb 09, 2022@Tannie - Thanks a lot for sharing the detailed repro steps.
We will try it from our end and let you know the updates.
We will try it from our end and let you know the updates.
- YannieDec 19, 2022Copper ContributorHow about the scenario mentioned by ivo-beemster?
They are not using SharePoint add-ins but an external webpage which has used ajax calls. - Meghana-MSFTNov 17, 2022
Microsoft
Engineering team has gone through the bug and has said that -
This is not a supported scenario. SharePoint add-ins have not been designed to work in clients embedding SharePoint pages. We do have SharePoint Framework for that scenario.The "SharePoint Add-In" and "Provider Hosted App" combination is an extensibility platform from 2012 or so,and has been getting phased out for the past several years. - Meghana-MSFTNov 08, 2022
Microsoft
We have informed the engineering team about this issue, please be assured that I will keep you posted on the updates. 
- ivo-beemsterNov 07, 2022Copper Contributor
we have the same problem. We have created a simple app the loads an external webpage.
The page makes some additional ajax calls to the server.
when we debug on the server:
each ajax call from the teams app has his own session_id.
when we access the page through a browser every ajax call has the same session_id (as it should be)
is there a fix for this issue?
- YannieJul 06, 2022Copper ContributorHI
I have already shared all the steps and logs to u on Feb 08 2022 through Message Box.
I have just sent you some additional information that have sent to Meghana be4. Please check if it helps.
Remember to put click event to the button. - ChetanSharma-msftJul 05, 2022
Microsoft
Hello Yannie - Can you please share the deploy details, so that we can try it from our end? - ChetanSharma-msftMay 20, 2022
Microsoft
Yannie - We are not able to repro it.
It will be really helpful, if you can provide us a deployed version of SharePoint Add-in for our testing and investigation ? - Meghana-MSFTMar 25, 2022
Microsoft
Currently there are no updates. I will post here if there are any updates. - YannieMar 25, 2022Copper Contributor
Meghana-MSFT Please let me know if there are any updates, thank you
- Meghana-MSFTFeb 23, 2022
Microsoft
We have added an on click event to the button and now its working on web but does not work in MS Teams. We are checking this with the engineering team. - YannieFeb 18, 2022Copper Contributor
Meghana-MSFT, please note that the issue ONLY happens in Teams 🙂 Mine looks fine in browser.
- Meghana-MSFTFeb 17, 2022
Microsoft
Yannie - We were able to repro this but we see that, this issue is happening in browser as well. This does not seem like an issue on Microsoft Teams side. Could you please confirm it?
- Meghana-MSFTFeb 16, 2022
Microsoft
Yannie - I tried creating a developer site as you suggested and created a project again. I am getting Microsoft.SharePoint.Client.ServerUnauthorizedAccessException after running the project. I apologize for asking many times. Is it possible for you to share developer site url and demo tenant details so that it would be easier for us to check this issue.
- YannieFeb 14, 2022Copper Contributor
Meghana-MSFT My Developer Site URL
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/create-a-developer-site-on-an-existing-office-365-subscription - Meghana-MSFTFeb 14, 2022
Microsoft
Yannie - Could you please let us know what URL you have given here in this step? We tried with sharepoint site URLs but it gave us "Error occurred in deployment step 'Install SharePoint Add-in': Sideloading of apps is not enabled on this site. testSPAddIn 0" while running the code from Visual studio.