edds / jenkins-dashboard

A dashboard for displaying jenkins status on a big screen
10 stars 7 forks source link

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. #2

Closed cmug81 closed 2 years ago

cmug81 commented 8 years ago

Hi,

I get an error when using Chrome 49.0.2623.87 (64-bit). Error message reads: XMLHttpRequest cannot load http://:8080//api/json?tree=views[name,jobs[name…fulBuild[duration],healthReport[description,score],inQueue,buildable,color]]. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 403.

cmug81 commented 8 years ago

same behavior if I run this with file:/// or through python -m SimpleHTTPServer or via a separate Apache server

edds commented 8 years ago

You need to ensure that your jenkins server is setup to handle CORS requests.

Cka3 commented 6 years ago

How? Especially on windows