Skip to content

A GET manifest.json returns 401 error if page is protected by Basic Auth #316

@jenkin

Description

@jenkin

Shlink web client version

  • Version: 2.6.0
  • How do you use shlink-web-client: self-hosted
  • Browser: Chromium version 83.0.4103.116 (Build) built on Debian 10.4, running on Debian 10.6 (64 bit)

Summary

If the web application is protected by Basic Authentication, all requests to manifest.json failed with a 401 error, also after authentication. But if you directly access /manifest.json, it works without issue.

Current behavior

Behind Basic Authentication, requests to manifest.json raise a 401 error.

Expected behavior

No errors, manifest is loaded without issues.

How to reproduce

Install shlink web client. Protect the directory using Basic Auth. Browse to the webpage, enter valid credentials, see the described error in console.

Hint for a solution

From this comment, add crossorigin="use-credentials" attribute to manifest link in index.html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions