<?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>25971</bug_id>
          
          <creation_ts>2014-06-04 07:21:47 +0000</creation_ts>
          <short_desc>&quot;To perform a CORS preflight fetch using request...&quot;</short_desc>
          <delta_ts>2014-06-04 12:38:50 +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>Fetch</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>mkwst</cc>
          
          <qa_contact>sideshowbarker+fetchspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107234</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-04 07:21:47 +0000</bug_when>
    <thetext>http://fetch.spec.whatwg.org/#cors-preflight-fetch

Need to define client and context for CORS preflight fetches. Probably deserves its own context and client should be copied from the actual fetch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107235</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-04 07:22:12 +0000</bug_when>
    <thetext>Mike, this might be of interest to you. What context to use for CORS preflight.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107236</commentid>
    <comment_count>2</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2014-06-04 07:31:13 +0000</bug_when>
    <thetext>Why would you suggest a new context? If I&apos;m requesting an image with the crossorigin flag, I think I&apos;d expect the CORS preflight to be blocked by `img-src &apos;none&apos;`. Without thinking about it too hard, I&apos;d suggest that the context be copied from the fetch as well as the client.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107237</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-04 07:38:01 +0000</bug_when>
    <thetext>Fair I guess.

I was thinking new context since some parameters (such as credentials) are different, but what you say makes much more sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107268</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-04 12:38:50 +0000</bug_when>
    <thetext>https://github.com/whatwg/fetch/commit/54b2bfedc0079f1af793a957e9e84584ec9f7a03</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>