<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25984</bug_id>
          
          <creation_ts>2014-06-04 22:53:15 +0000</creation_ts>
          <short_desc>EventSource should support RequestInfo</short_desc>
          <delta_ts>2015-09-15 08:22:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2015 Q1</target_milestone>
          <dependson>26533</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>naasir.ramji</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107300</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-06-04 22:53:15 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top
Referrer: 

Comment:
Section 4: The EventSource interface does not permit to set request headers.
This is a limitation for applications that may want to use custom headers to
transfer small tokens of information between client and server.

Posted from: 24.69.56.242
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107301</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-06-04 22:58:49 +0000</bug_when>
    <thetext>What&apos;s the use case? Can&apos;t you just put the information in the URL?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109978</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-08-06 00:21:39 +0000</bug_when>
    <thetext>This&apos;ll probably end up fixed by exposing &apos;fetch&apos; objects or something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119002</commentid>
    <comment_count>3</comment_count>
    <who name="">naasir.ramji</who>
    <bug_when>2015-03-28 08:33:11 +0000</bug_when>
    <thetext>Any update on this?

I think one very legitimate use case for supporting custom headers with the EventSource API is when communicating with an SSE endpoint that handles authentication via OAuth2. OAuth2 seems to be the current de facto standard for securing an API. The recommended best practice for having clients specify their OAuth2 access tokens is via the Authorization header and NOT through query parameters in the URL (as URLs are often logged).

See last bullet point here: https://tools.ietf.org/html/rfc6750#section-5.3

Would love to get more details on the &apos;fetch&apos; objects proposal...

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123201</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-15 08:22:24 +0000</bug_when>
    <thetext>You can basically do what EventSource does and much more with fetch() + streams. I don&apos;t think it makes sense to extend EventSource given that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>