Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization header is not getting passed by service-worker #277

Open
pawanmeena opened this issue Apr 13, 2021 · 0 comments
Open

Authorization header is not getting passed by service-worker #277

pawanmeena opened this issue Apr 13, 2021 · 0 comments

Comments

@pawanmeena
Copy link

workboxOpts: {
    runtimeCaching: [
      {
        urlPattern: /api/,
        handler: 'NetworkFirst',
        options: {
          cacheableResponse: {
            statuses: [0, 200],
            headers: {
              'x-test': 'true',
              "credentials": "include"
            }
          }
        }
      }
    ]
  },

Next js -> 10.0.9
next-offline -> 5.0.2

We want to pass authorization header. Which is not working with our current implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant