fix: add attribute crossorigin=use-credentials then browser like Chrome can pass the basic auth when requesting the manifest files

This commit is contained in:
Patrick Maurits Sangian 2022-12-29 01:55:09 +07:00
parent 5c48e4e31d
commit 8f637aabb4

View File

@ -31,7 +31,7 @@
manifest.json provides metadata used when your web app is installed on a manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
--> -->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> <link rel="manifest" href="%PUBLIC_URL%/manifest.json" crossorigin="use-credentials" />
<!-- <!--
Notice the use of %PUBLIC_URL% in the tags above. Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build. It will be replaced with the URL of the `public` folder during the build.