1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

PWA: Prevent passing credentials to avoid redirection issues

For #4649
More of a patch around the issue for now.
Have opened #4656 to properly address.
This commit is contained in:
Dan Brown
2023-11-07 14:33:37 +00:00
parent 889b0dae3b
commit ea0469e61a
3 changed files with 7 additions and 4 deletions

View File

@@ -24,9 +24,7 @@ class PwaManifestTest extends TestCase
{
$html = $this->asViewer()->withHtml($this->get('/'));
// crossorigin attribute is required to send cookies with the manifest,
// so it can react correctly to user preferences (dark/light mode).
$html->assertElementExists('head link[rel="manifest"][href$="manifest.json"][crossorigin="use-credentials"]');
$html->assertElementExists('head link[rel="manifest"][href$="manifest.json"]');
$html->assertElementExists('head meta[name="mobile-web-app-capable"][content="yes"]');
}