[Webkit-unassigned] [Bug 173295] New: [Fetch API] TypeError when called with Authorization header

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 12 18:05:42 PDT 2017


            Bug ID: 173295
           Summary: [Fetch API] TypeError when called with Authorization
           Product: WebKit
           Version: Safari 10
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: soswow at gmail.com

Created attachment 312740

  --> https://bugs.webkit.org/attachment.cgi?id=312740&action=review

Stack trace in developer tools

I am not sure what is causing my problem and how to prepare a proper code sample.

Error I have is "TypeError: Type error"
Call-stack is not helpful, but still:

[native code]
[native code]

I am calling fetch function with arguments: url, params
url is a string,
params is an object with:

  method: 'POST', //(or 'DELETE')
  headers: new Headers({
    'Authorization': 'JWT asdasdasdasdasdasadas'

It works in Chrome.
I tried using simplest xhr implementation and it works in Safari.

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/20170613/b3e968bc/attachment.html>

More information about the webkit-unassigned mailing list