Enable CORS for Reporting Services

前端 未结 4 1881
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 14:32

I need to enable CORS in Reporting Services so that I can download reports from my web application using ajax. What I\'ve learned so far is, that SSRS is no longer using II

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 15:16

    I managed to get this working by adding the following code to the global.asax in reportserver directory.

    <%@ Application Inherits="Microsoft.ReportingServices.WebServer.Global"  %>
    <%@ Import namespace="System.Web" %>
    <%@ Import namespace="System.Security" %>
    
    
    

    HTH cheers Dave

提交回复
热议问题