Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Cross-Origin Request Blocked on OlapXmlaDataSource
posted

Hello.

I am having issues with Cross-Origin Request.  msmdpump.dll/IIS7  works great with excel or SSMS.   SSAS server resides in different server

but getting "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost/olap/msmdpump.dll. This can be fixed by moving the resource to the same domain or enabling CORS."  with FireFox.

I have performed CORS http://help.infragistics.com/Help/Doc/jQuery/2013.1/CLR4.0/html/igOlapXmlaDataSource_Configuring_IIS_for_Cross_Domain_OLAP_Data.html

Also, if I want to let user choose cube, rows, columns, measure, I can leave them blank ?

Here are my code.   Thanks


<script>
$.support.cors = true;

$(function () {
var dataSource = new $.ig.OlapXmlaDataSource({
serverUrl: 'http://localhost/olap/msmdpump.dll',
catalog: 'OLAP_OrbitzLeisure',
});

$('#dataSelector').igPivotDataSelector({
dataSource: dataSource,
height: "650px",
width: "240px"
});
$("#pivotGrid").igPivotGrid({
dataSource: dataSource,
height: "650px",
width: "670px"
});
});
</script>


Parents
No Data
Reply
  • 8421
    posted

    Hello Tomo,

    In the virtual directory for your server there should be a web.config file. Could you provide this to me so that I can analyze it to determine what settings you have applied. By default this would be found at C:\inetpub\wwwroot\olap.

    As to your question about letting the user choose their own settings, yes this is possible. All you need to set is the serverUrl and the PivotDataSelector will analyze the cube and let the user specify what they want through drop downs. You can see that demonstrated through this jsFiddle: http://jsfiddle.net/fz3hxk2r/

Children