Cross-Origin Resource Sharing is a technology for the web that provides async web operations to directly access reports from different domains. CORS works by adding a special header to responses from a server to the client. If a response contains the Access-Control-Allow-Origin header, then you can directly access the reports from another domain.
The following viewers require CORS:
The following steps describe how to access reports from different domain using CORS.
Paste inside the Global.asax.cs |
Copy Code
|
---|---|
|
Paste inside the Global.asax.vb |
Copy Code
|
---|---|
|
Note:
$.support.cors = true;
code on the client side while initializing the HTML5 Viewer to access reports from a different domain.