Kimai2: Subresource integrity is breaking the application if it is hosted behind a reverse proxy (a.k.a. how to disable .js integrity?)

Created on 31 Mar 2020  路  2Comments  路  Source: kevinpapst/kimai2

Describe the bug
The js won't load properly if the application server is located behind a reverse-proxy running on a firewall.

Possible solution would require to disable the integrity check for .js

_How can I disable the Subresource integrity in the server configuration?_

To Reproduce
Steps to reproduce the behavior:

  1. Install Kimai following the documentation
  2. Try to serve the server behind a reverse proxy that inspects SSL and changes the payload
  3. .js won't load and the whole application is broken

Logfile
Irrelevant as the problem is not related to the application itself.

Screenshots

image

image

Desktop/Smartphone
Same issue regardless of browser unless using IE (which don't support subressource integrity)

Additional context
Kimai 1.8

support

Most helpful comment

Or you tell your proxy to not fuck up the files ... the integrity check only fails if the files are being changed.

I wish I could... Fricking Sophos!

I'll remove the integrity hash to check if is fixes the issue.

EDIT: It works \o/

Thanks for the tip =)

All 2 comments

You cannot turn them off.
Maybe you can remove the integrity block: https://github.com/kevinpapst/kimai2/blob/master/public/build/entrypoints.json#L43
Or you rebuild the frontend assets with deactivated hashes:
https://github.com/kevinpapst/kimai2/blob/master/webpack.config.js#L20

Or you tell your proxy to not fuck up the files ... the integrity check only fails if the files are being changed.

Or you tell your proxy to not fuck up the files ... the integrity check only fails if the files are being changed.

I wish I could... Fricking Sophos!

I'll remove the integrity hash to check if is fixes the issue.

EDIT: It works \o/

Thanks for the tip =)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jcgruenhage picture jcgruenhage  路  5Comments

roulious picture roulious  路  4Comments

MakhPeter picture MakhPeter  路  5Comments

heeen picture heeen  路  6Comments

miketubby picture miketubby  路  6Comments