openbudgets / DAM

OBEU Data Analysis and Mining repository
3 stars 1 forks source link

Implement CORS headers #5

Closed larjohn closed 7 years ago

larjohn commented 7 years ago

Cross Origin requests should be allowed, in order to use browser based apps with DAM.

I am trying to run indigo locally with DAM as endpoint, and I get this message:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.0.108:5000/cubes/global/algo. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

I can bypass this by installing a plugin in the browser, but this is not the expected behavior.

HimmelStein commented 7 years ago

Hi Lazaros,

I add the CORS function to DAM, and push the new DAM to staging_indigo branch at GitHub.

please test it, and update me.

best, -tiansi

Am 09.03.2017 um 00:05 schrieb Lazaros Ioannidis notifications@github.com:

Cross Origin requests should be allowed, in order to use browser based apps with DAM.

I am trying to run indigo locally with DAM as endpoint, and I get this message:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.0.108:5000/cubes/global/algo http://192.168.0.108:5000/cubes/global/algo. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

I can bypass this by installing a plugin in the browser, but this is not the expected behavior.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openbudgets/DAM/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AFUE7d59mcWBsUK19dpJ1Qry0vbJyPxdks5rjzRIgaJpZM4MXbZk.