RESOLVED INVALID205686
EventSource Status 200 but showing error
https://bugs.webkit.org/show_bug.cgi?id=205686
Summary EventSource Status 200 but showing error
Dhruvesh Parikh
Reported 2020-01-02 07:35:23 PST
Created attachment 386606 [details] status 200 but showing error When using eventsource https://developer.mozilla.org/en-US/docs/Web/API/EventSource api in Safari, we are getting Response as Status: 200 OK but in Safari Inspector getting Response as Red. (Please check 200_OK_Response.png) To replicate it create this page with the script as <script> var source = new window.EventSource( "https://cdneast2-xch.media.net/AdExchange/rtbsspub?&gdpr=0&gdprconsent=1&cid=8CU6Q6626&region=nv&ptrid=8PRL4E7N3&requestString=881672292*84%7C1x1_TNG7O25_1%7C8CU6Q6626%7C881672292&crid=881672292&sd=3&requrl=http%3A%2F%2Fhblocal.media.net%2Ftest%2Fscroll-page-test.php&bl=1&rt=5&dn=http://hblocal.media.net&https=0&act=cache&prvReqId=373632267375476031576859414904&erTr=0&hlt=1&ugd=4&adt=desktop&kwrf=http%3A%2F%2Fhblocal.media.net&tr=0.15479458203630414&ndec=1&scrsize=1920x1080&taginfo=%7B%7D&pageinfo=%7B%22vw%22%3A1852%2C%22vh%22%3A468%2C%22ph%22%3A468%7D&itype=HB&sid=7305&tmt=300&at=3&prid=8PRVCXX19&dma=635&cc=US&rc=TX&ct=SANMARCOS", {withCredentials:true} ); source.addEventListener("close", function (event) { if (!event) { return; } if (event.data === "CLOSE") { source.close(); window.console.log("it is closed"); } }, false); </script> and check in Safari Inspector
Attachments
status 200 but showing error (352.07 KB, image/jpeg)
2020-01-02 07:35 PST, Dhruvesh Parikh
no flags
Note You need to log in before you can comment on or make changes to this bug.