Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CORS check for 304 response #27

Open
ghost opened this issue Oct 19, 2015 · 8 comments
Open

add CORS check for 304 response #27

ghost opened this issue Oct 19, 2015 · 8 comments

Comments

@ghost
Copy link

ghost commented Oct 19, 2015

Some web servers, including it seems Apache in Fedora 22 do not set CORS headers on responses with a 304, e.g.:

$ curl -k -H 'If-None-Match: "1:c8ec8b42d2f03ce91d1ab7390ef56db5"' -I https://storage.tuxed.net/php-remote-storage/foo/public/shares/151019-1755-20150201_162437.jpg
HTTP/1.1 304 Not Modified
Date: Mon, 19 Oct 2015 18:13:03 GMT
Server: Apache/2.4.16 (Fedora) OpenSSL/1.0.1k-fips PHP/5.6.14
Etag: "1:c8ec8b42d2f03ce91d1ab7390ef56db5"
@ghost
Copy link
Author

ghost commented Oct 19, 2015

See https://bz.apache.org/bugzilla/show_bug.cgi?id=51223. Still not fixed.

@raucao
Copy link
Member

raucao commented Oct 19, 2015

Wow! That's been an issue since over 3 years now, and Apache still doesn't do CORS properly?

@ghost
Copy link
Author

ghost commented Oct 19, 2015

@ghost
Copy link
Author

ghost commented Oct 19, 2015

I guess I have to lie about the 304 and just return a 200 instead... :(

@raucao
Copy link
Member

raucao commented Oct 19, 2015

Damn, that's actually a really big drawback with all the directory requests we have to do for sync.

@ghost
Copy link
Author

ghost commented Nov 10, 2015

My tests show that 304 headers are not needed on CORS...

@raucao
Copy link
Member

raucao commented Nov 10, 2015

@fkooman What browsers/UAs did you test so far? We should probably make a list, as this was a problem with all browsers I tested not too long ago.

@ghost
Copy link
Author

ghost commented Nov 10, 2015

[fkooman@localhost ~]$ rpm -q firefox chromium
firefox-42.0-2.fc22.x86_64
chromium-46.0.2490.80-1.fc22.x86_64
[fkooman@localhost ~]$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant