title: cors - Response for preflight is invalid (redirect) - redux
body: <p>I have action</p>
  
  <pre><code>export function searchInWiki(search) {
  const myRequest = new Request(API_URL + search);
  const myInit = {
    method: 'POST',
    mode: 'cors',
    headers: {
     'Access-Control-Allow-Origin':'*',
     'Content-Type':'multipart/form-data',
      'Access-Control-Allow-Methods': 'DELETE, HEAD, GET, OPTIONS, POST, PUT',
      'Access-Control-Allow-Headers': 'Content-Type, Content-Range, Content-Disposition, Content-Description',
      'Access-Control-Max-Age': '1728000'
    }
  };
  
  return dispatch =&gt; fetch(myRequest, myInit)
    .then(response =&gt; response.json())
    .then(json =&gt; dispatch(getResults(json)))
  }
  </code></pre>
  
  <p>But I keep getting error "Response for preflight is invalid (redirect)". Could you please give my any idea how to fix it? </p>