Reputation: 91
I have created a Tab for Microsoft Teams. Once it is added to a channel it shows an error:
Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
The tab is supposed to load an application hosted in Azure which is making a connection to an external domain.
Upvotes: 2
Views: 1952
Reputation: 91
Adding the following code into Global.asax fixed the problem:
protected void Application_Start()
{
AntiForgeryConfig.SuppressXFrameOptionsHeader = true;
}
Upvotes: 5