SonarQube Docker Documentation Download Page can't access to https://update.sonarsource.org/scannercli.json due to CORS

Hi,
I can’t find the download section of SonarScanner when I visit the documentation on SonarQube Docker and it’s returning me a CORS error from https://update.sonarsource.org/scannercli.json

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)

SonarQube Docker - sonarqube:8-community

  • error observed (wrap logs/code around triple quote ``` for proper formatting)
(index):1 Access to fetch at 'https://update.sonarsource.org/scannercli.json' from origin 'http://localhost:9000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://docs.sonarqube.org' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

  • steps to reproduce
  1. Login to SonarQube projects dashboard
  2. Click Add Project
  3. Enter a project name and display key and then click set up
  4. Provide a token and proceed to Run analysis on your project
  5. What option best describes your build? = Other
  6. What is your OS? = Any
  7. Click Download and navigate to the docs
  • potential workaround

Visiting the online docs at SonarScanner | SonarQube Docs to download SonarScanner

Hi,

Thanks for reporting this. As concluded in other threads, documentation in future versions will simply point you to the online docs - your potential workaround.

 
Ann

1 Like