Show modal dialog form from another site collection

Ever get an error message saying “Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN‘.” when trying to load a list form from another site collection in a modal dialog? ¬†Add this to a line right after the last <% Register tag on the masterpage:

<WebPartPages:AllowFraming runat="server" />

Eric Oszakiewski

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 37 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a .Net/SharePoint Development Lead for General Motors.

More Posts - Website

Follow Me: