You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/05/04 12:49:02 UTC

[Bug 51223] 304 HTTP Not Modified strips out CORS headers

https://bz.apache.org/bugzilla/show_bug.cgi?id=51223

rdehouss@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rdehouss@gmail.com

--- Comment #13 from rdehouss@gmail.com ---
Hello,

I do face the issue as well.

Cross domain, I fetch a resource which is cacheable and when apache respond
with 304, the CORS headers are not present and so, the browser (Firefox in this
case) alerts with:
ross-Origin Request Blocked: The Same Origin Policy disallows reading the
remote resource at http://test.com/test.json. (Reason: CORS header
'Access-Control-Allow-Origin' does not match 'http://test.com').

If I do a hard refresh, I get back a status 200 and with it, the CORS headers
are well there.

I also do send the Vary: Origin to specify that the cache should take into
account the Origin header but it does not help.

Can the patch provided be considered?

Thanks

Cheers,

Raphaƫl Dehousse

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org