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
400 Bad Request when using NGINX proxy to avoid adblock #33
Comments
_UPDATE_
|
@peterwilli FYI we recently added a new component which should process these events with the CF headers. If you need them try adding them back in when ready. |
I'am still facing issues with CloudFlare headers. So seems it's not entirely fixed ? 🤔 |
@SegersIan Can you provide more information? This issue is closed for over 3 years. Is your scenario the same as in initial post? Are you using NGINX proxy? Can you provide your configuration, what you send and what you receive? |
@Katulus Sorry, didn't saw your response. My issuer is not NGIX specific, but I noticed that the following header from cloudflare seems to throw a
I discovered this by first logging to some service like request bin, and then repeating the same request to the loggly API. This means it's not an NGIX issue, nor a loggle-jslogger issue, where should I consider opening this issue? EDIT: I've send the following to support: I'am trying to log to Loggly from my CloudFlare web workers. When I do a post request to my Loggly API endpoint, a 400 response is thrown for my request. This is an example of the headers that are set by CloudFlare:
This would work :
But not :
I can only remove the Looking forward to your feedback. |
@SegersIan Thanks for the info. It looks that our endpoint has issues with |
@SegersIan , this should be now fixed. |
Hi,
I'm currently trying to get loggly js logging working trough my nginx network (see: https://github.com/loggly/loggly-jslogger#setup-proxy-for-ad-blockers). Somehow it does not work and always gives me '400 Bad Request'-errors.
I'm using the config file in the example as-is (no changes made) and the API request works just fine if I remove my own domain name from the url and replace it by:
http://logs-01.loggly.com
So it works when I have no nginx in between, so I believe it's nginx to blame but I just can't place what it could be.
Anyone else having this problem? Thanks!
The text was updated successfully, but these errors were encountered: