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

Rack::Protection::HttpOrigin blocking POST through Nginx proxy #98

Open
samba opened this issue May 1, 2014 · 2 comments
Open

Rack::Protection::HttpOrigin blocking POST through Nginx proxy #98

samba opened this issue May 1, 2014 · 2 comments

Comments

@samba
Copy link

samba commented May 1, 2014

This maybe a matter of configuration, but I'm not a Ruby developer (yet), so I'm not sure where to look for either diagnosing or fixing it properly.

I've got an Nginx installation proxying requests to Olelo. It seems GET requests work fine.

POST requests get a 403 Forbidden response, and in my console I see a log from Olelo:
WARN -- : attack prevented by Rack::Protection::HttpOrigin

Nginx is responding to hostname a.b.c (example), and Olelo is using Thin, currently, to listen on 0.0.0.0:3535.

What requirements does this Protection module enforce? Are there specific HTTP headers I need to pass through? (I'm already trying with Origin and Cookie headers, but no luck.)

Is this a matter of configuring Olelo differently?

Thanks!

@minad
Copy link
Owner

minad commented May 1, 2014

I will take a look before the next release. You have to change the config.ru file

@samba
Copy link
Author

samba commented May 1, 2014

Thanks @minad; please let me know if you have a sense of time-frame for that.

My current Nginx configuration, in this regard, looks like so:
http://paste.debian.net/hidden/088dad59/

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

No branches or pull requests

2 participants