board icon indicating copy to clipboard operation
board copied to clipboard

Resolve fonts.googleapis.com at build-time, not at runtime

Open Ezwen opened this issue 2 years ago • 0 comments

Expected Behavior

When running RestyaBoard in a browser, I would expect it to be self-contained, and to not rely any resources (eg. fonts, JS libraries, etc) provided by third-party servers/companies. The reason is that, when downloaded from third parties (eg. Google), such resources are used as a mean for tracking their users.

Current Behavior

Currently, RestyaBoard has a hard-coded dependency to fonts.googleapis.com/css?family=Open+Sans, which means RestyaBoard running in a browser will always try to reach servers from Google. This means Google can track RestyaBoard users, to some extent.

See this line from index.html https://github.com/RestyaPlatform/board/blob/9c34b6b59ee2665e78a54c5f3a887beba6a19c4b/client/index.html#L13

Screenshots (if appropriate):

Capture d’écran de 2022-03-18 15-22-10

Possible Solution

Steps to Reproduce (for bugs)

  1. Download the provided docker-compose file.
  2. Change the volume declarations as required for the local bindings.
  3. Run docker-compose up
  4. Open Firefox (without addons)
  5. Open the developer tab (ctrl+shift+c), reach the network section
  6. Open http://localhost:1234

Context

Your Environment

  • Version used: 1.7.1
  • Environment name and version (e.g. OS, PHP, PostgreSQL): using the provided docker-compose file.
  • Operating System and version (desktop or mobile): desktop
  • Link to your project: N/A

Ezwen avatar Mar 18 '22 14:03 Ezwen