Skip to content

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

Open
@pawanmeena

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions