ChaelCodes / HuntersKeepers

An app to make managing games of Monster of the Week easier.
MIT License
40 stars 26 forks source link

Content Security Policy blocks execution of Turbolinks #272

Open sjaustirni opened 3 years ago

sjaustirni commented 3 years ago

Describe the bug Turbolinks execution is being blocked by CSP. Fortunately, thanks to graceful Turbolinks degradation, this does not break the functionality of the site, but it does offer a degraded experience.

To Reproduce Steps to reproduce the behavior:

  1. Load any HuntersKeepers URL, fx. https://hunters-keepers.herokuapp.com/playbooks
  2. Click on any link on the page, fx. https://hunters-keepers.herokuapp.com/playbooks/8
  3. Open your Developer Console
  4. See the errors

Expected behavior Turbolinks will succesfully manipulate the DOM without complaining in the Developer Console.

Actual behavior Turbolinks will not work at all and the Developer Console will contain errors like:

Desktop:

Additional context Since this is not a critical bug, it might be clever to solve this problem when/if the project moves on to Turbo, as Turbolinks is deprecated.