问题:
业务应用集成报表功能,查看报表时浏览器提示“已拦截跨源请求”,怎么办?
答案:
请在报表系统安装目录的Site文件夹下找到web.config文件,用记事本打开,在 <system.webServer>下面添加以下内容:
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="AuthToken, Authorization, Origin, Content-Type, Accept, X-Requested-With" />
</customHeaders>
</httpProtocol>
|
|