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:
@@ -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"]');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user