django-pwa
django-pwa copied to clipboard
Update pwa.html
Include crossorigin to prevent 401 when pwa is behind sign in
Hey @silviolleite , I'd like to see this PR reviewed & merged. Without this, django-pwa is not usable in any reverse proxy or auth scenario.
Code changes are only one line.
Hey @silviolleite , I'd like to see this PR reviewed & merged. Without this,
django-pwais not usable in any reverse proxy or auth scenario.Code changes are only one line.
Thx @Archmonger Please, you need to fix the unit tests.
@silviolleite I am not the author for this PR, and the original author appears to be inactive on GH.
The fix for the unit test is quite simple.
Line 25 of test_template_tags.py needs to be changed.
Previously was: '<link rel="manifest" href="/manifest.json">',
Needs to be '<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">',
Tests will pass after this change.