BenFenner / flail_web_sinatra

Web interface to Flail, the medieval exception catcher. This time using Sinatra.
0 stars 2 forks source link

The bar chart occasionally fails to display. #22

Open BenFenner opened 8 years ago

BenFenner commented 8 years ago

This started yesterday after updating ruby from 2.2.2 to 2.2.3 and sinatra from 1.4.5 to 1.4.6. Johnny says his JS console shows this error:

XMLHttpRequest cannot load "[local_github_enterprise_URL] oauth url here'. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://[dashboard_URL]' is therefore not allowed access.

Two URLs have been replaced with [generic_descriptions].

BenFenner commented 8 years ago

Using Chromium, I'm able to see the same error. I have no idea why Pale Moon (Firefox fork) fails to show the error in the console, but I'm not about to hunt down why.

BenFenner commented 8 years ago

I can't reproduce the issue in my development environment. It's going to have something to do with our production environment.

BenFenner commented 8 years ago

It turns out this is currently only an issue for Chrome (and Pale Moon). More details here: https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome