[wp-trac] [WordPress Trac] #46381: WordPress multisite API CORS issue with headers (v5)

WordPress Trac noreply at wordpress.org
Fri Mar 1 00:51:59 UTC 2019


#46381: WordPress multisite API CORS issue with headers  (v5)
--------------------------+------------------------------
 Reporter:  kacalica      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by earnjam):

 The error implies it is redirecting to a different origin. So the headers
 wouldn’t matter in this case. For more info, see:
 https://developer.mozilla.org/en-
 US/docs/Web/HTTP/CORS/Errors/CORSExternalRedirectNotAllowed

 You need to get rid of the redirect or point your fetch code at the
 destination instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46381#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list