refer owa(exchange) 2013 via a iframe in sharepoint 2013
2013-05-08 15:11
866 查看
Refused to display 'https://cas.temp.local/owa/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
create a file named a.cs under C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\app_code
add a line to web.config(C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa)
between
<system.webServer>
<serverRuntime uploadReadAheadSize="0" />
<modules>
</modules>
close web browser ,clear cache and cookies
The OWA 2013 now can display with a iframe under a differetn subdomain
create a file named a.cs under C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\app_code
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Security; using System.Security.Principal; namespace ZY { public class M1 : IHttpModule { public void Dispose() { } public void Init(HttpApplication application) { application.PreSendRequestHeaders += new EventHandler(application_PreSendRequestHeaders); } void application_PreSendRequestHeaders(object sender, EventArgs e) { HttpApplication application = (HttpApplication)sender; application.Context.Response.Headers.Set("X-Frame-Options",""); application.Context.Response.Headers.Remove("X-Frame-Options"); } } }
add a line to web.config(C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa)
between
<system.webServer>
<serverRuntime uploadReadAheadSize="0" />
<modules>
<add name="zy" type="ZY.M1" />
</modules>
close web browser ,clear cache and cookies
The OWA 2013 now can display with a iframe under a differetn subdomain
相关文章推荐
- Create subtask in task list via client javascript in sharepoint 2013
- Intro to eDiscovery in SharePoint, Exchange, and Lync 2013
- Create web application with Host Header in SharePoint 2013
- 4TH PROFILE SOURCE IN SHAREPOINT 2013′S PEOPLE PICKER
- Import a SharePoint Designer Reusable Workflow into Visual Studio in SharePoint 2013
- In-Place upgrade to Team Foundation Server (TFS) 2015 from TFS 2013Team Foundation Server TFS TFS 2015 TFS upgrade TFS with Sharepoint
- Post/Reply a post by Social feed REST API in SharePoint 2013
- How to Configure Workflow Infrastructure 2013 in Sharepoint 2013
- Uploading Files in SharePoint 2013 using CSOM and REST
- item style edit in sharepoint 2013
- Setting Up an oAuth Trust Between Farms in SharePoint 2013
- Creating a New Master Page in SharePoint 2013
- 配置SharePoint Server 2013和2013年Exchange服务器之间的通信(Configure communication between SharePoint Server 20)
- Change the default search topology in SharePoint Server 2013
- [Forward]Visual Guide: Setting up My Sites in SharePoint 2013
- Use Windows PowerShell cmdlets to manage sites in SharePoint 2013
- How to custom search results in SharePoint Server 2013
- Creating a Custom Page Layout in SharePoint 2013
- How to Sign in as a Different User in SharePoint 2013
- Filter the task and subtask in sharepoint 2013