[Webkit-unassigned] [Bug 239318] Basic authentication specified in auth popup on a website overrides subsequent API calls that requires Authorization header

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 14 19:51:45 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239318

--- Comment #3 from Nikolay Latyshev <nikolay.latyshev at ewave.com> ---
Sorry, forgot to mention, request, in this case, should be created via Fetch API to relative URL, didn't try other options.

fetch('/api/login', {
  method: 'POST',
  body: {
    some: 'body',
  },
  headers: {
    Authorization: `Basic ${btoa(`${customer}:${password}`)}`,
})

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220415/a5ab4bc0/attachment-0001.htm>


More information about the webkit-unassigned mailing list