Get Free Trial

Getting Error – Response to preflight request doesn't pass access control check:

Abhijeet Patil asked on February 26, 2018

 Hi there,
I have downloaded pivot-accelerator-dll-master fro git hub and setup the data source as my server and try to run the solution and browse simple cube data. I am getting following error.
Response to preflight request doesn’t pass access control check: No ‘Access-COntrol-Allow-Origin’ header is present on the requested resource… therefore not allowed access. The response had HTTP status code 404.
For refference i have attached the screenshot of the console.
Can you help me to resolve the issue


7 answers

Dmytro Zvazhii Dmytro Zvazhii Flexmonster February 26, 2018

Hello Abhijeet,
Thank you for your question. It seems that you need to enable CORS on your accelerator server. Please have a look at the following article –

Let us know if the information above was helpful for you.

Abhijeet Patil February 26, 2018

I have applied the same cors filter but, I am not able to solve the issue
Please see the attached screenshot


Dmytro Zvazhii Dmytro Zvazhii Flexmonster February 27, 2018

Hello Abhijeet,
Thank you for your feedback. Could you please check the URL you are connecting to? Please try accessing it with your browser – http://localhost:81/api/accelerator. It should respond with the same page as here –
Please let us know if the information above was helpful for you.

Abhijeet Patil February 27, 2018

Hello Dmytro,

Thank you so much for your help.

I tried given url it did not work correctly. We are having important delivery tomorrow, we are still facing CORS from last 3 days. Can you please help us to resolve this CORS issue..

Please guide us what we are missing by looking at the code, the solution is copy of git project

For your refference I have attached the project where we are facing the CORS issue. data source is set through the web.config app setting key FlexmonsterDataSource

Thanks in advance!

– Abhijeet Patil

Tanya Gryshko Tanya Gryshko Flexmonster March 1, 2018

Hello, Abhijeet,
Thank for the updates.
We have checked your project. Everything works as expected if we connect to our cube ( This means that the problem is with your msmdpump.dll settings because link does not work.
We suggest configuring msmdpump.dll correctly with the help of the detailed guide from Microsoft
Please note, if your cube is located on the same local network (not on another server), you can connect without using msmdpump.dll and providing credentials. The only requirement is that your current Windows user should have access permissions for database and cube.
Let me know whether you have managed to resolve the issue.

rajasekar November 29, 2019

im using flexmonster in dotnet application which is wrking fine,but after hosted in IIS, which is not working, filename url not working , can you please help me.

Dmytro Zvazhii Dmytro Zvazhii Flexmonster December 2, 2019

Thank you for writing to us.
Could you check the developer’s console window logs? It seems that the reference to the data file may be incorrect.
Please let us know if it helped to resolve the case.

Please login or Register to Submit Answer