简体   繁体   中英

Redirection from a page in teams app blocking my page

I have created a Microsoft teams app that contains a chatbot and few tabs. In one of the tabs, I am redirecting to our OAuth page for getting access token. When i make the redirection from my app I am getting error as

Refused to display 'my_url' in a frame because it set 'X-Frame-Options' to 'deny'. Can someone help me on this?

MS Teams tab is implemented on I-frame. And Authentication dialog is usually restricted to open in I-Frames. That's why you are getting this error. Instead you can open the Auth URL inside a popup, and after successful login redirect user to your tab.

Please have a look into Microsoft Teams authentication flow for tabs flow

Here is a ink for Auth code sample

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM