[Webkit-unassigned] [Bug 254010] New: Fetch POST Requests Not Working on Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 15 22:37:13 PDT 2023


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

            Bug ID: 254010
           Summary: Fetch POST Requests Not Working on Safari
           Product: WebKit
           Version: Safari 16
          Hardware: All
                OS: iOS 16
            Status: NEW
          Severity: Blocker
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pranayyadav08 at gmail.com

It seems that fetch is not working properly on both ARM and x86 machines, resulting in request bodies not being sent to the intended URL, despite using various code examples and workarounds. The expected request format should look like
"POST / HTTP/1.1\r\nHost: localhost:53421\r\nContent-Type: application/json\r\nOrigin: http://localhost:53421\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\nAccept: application/json\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15\r\nReferer: http://localhost:53421/\r\nContent-Length: 22\r\nAccept-Language: en-US,en;q=0.9\r\n\r\n{\"get_response\": true}"
but the actual request sent is missing the JSON body
"POST / HTTP/1.1\r\nHost: localhost:53421\r\nContent-Type: application/json\r\nOrigin: http://localhost:53421\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\nAccept: application/json\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15\r\nReferer: http://localhost:53421/\r\nContent-Length: 22\r\nAccept-Language: en-US,en;q=0.9\r\n\r\n"
It is important to note that after a certain number of requests, the body is added and it works as expected. It is also worth mentioning that the issue only occurs in safari, and not on other browsers.

-- 
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/20230316/f6cc0f42/attachment-0001.htm>


More information about the webkit-unassigned mailing list