While I can access the raw file using the browser, it can not be read inside the js. Do you know why?
I've tried my js script by serving a file from an external apache instance and it works. Where as it can not read the raw file that is served by fisheye.
I've thought it could be an issue with CORS support but i can not be able to find how to enable CORS in fisheye / crucible. Any helps are highly appreciated.
Please consider following while answering this question:
What you're seeing is probably due to lack of CORS support. Unfortunately there is no way to enable CORS in FishEye/Crucible. One way you could work around the lack of CORS is to configure an Apahce (or similar) reverse proxy to serve Confluence and FishEye from the same host/port (with separate context paths)
To work around the lack of CORS, the Confluence instance would need to be accessing a Fisheye instance on the same host and port. So yes - you would need to proxy both Fisheye and Confluence from the same apache instance.
An alternative approach often implemented by plugin developers (including plugins developed within Atlassian) is to add a servlet or REST endpoint to your Confluence plugin that proxies the request to Fisheye.
At Atlassian, we take great pride in the software we ship, and even greater pride in the success our customers achieve when they use our products. #JiraHeroes is our new monthly spotlight series ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events