From 167a992359a21a8c87ac3fa579d527f565c4c295 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Thu, 7 Feb 2019 21:49:39 +0330 Subject: [PATCH] docs: add minor doc about basic auth. (#94) --- docs/modules/workbox.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/modules/workbox.md b/docs/modules/workbox.md index 451bb348..b4e912bf 100644 --- a/docs/modules/workbox.md +++ b/docs/modules/workbox.md @@ -185,3 +185,17 @@ Add it to the `plugins` section of `nuxt.config.js`: ] } ``` + +### Basic Auth + +As a workaround for making basic auth working as described [here](https://thatemil.com/blog/2018/02/21/pwa-basic-auth) +you have to enable `manifst.crossorigin` in `nuxt.config.js`: + +```js +{ + manifest: { + crossorigin: 'use-credentials' + } +} +``` +