Questions tagged [cookies]
132 questions
0
votes
1 answer
Nginx - Black list cookies
Is there a way to black list cookies purely through Nginx?
I tried this: https://stackoverflow.com/questions/67548886/remove-specific-cookie-in-nginx-reverse-proxy
But it doesn't seem to cover cases where there are multiples of the same cookie and…

user17714968
- 3
- 1
0
votes
0 answers
Why HAProxy session cookie is changing?
I run two containers of an app behind an Haproxy and use sticky sessions. I configured it with a cookie as follow :
cookie SERVER insert indirect nocache
server app1 app-1:443 check ssl verify none cookie srv1
server app2 app-2:443 check ssl verify…

Wapax
- 1
0
votes
0 answers
Nginx Ingress Controller - configure cookie stickiness and upstream hash by request
I am running nginx as an ingress controller for my Kubernetes cluster and I have a use case where I am using cookie affinity to persist the client to a specific pod for session purpose.
I am using the following…

Virtuose
- 537
- 1
- 6
- 13
0
votes
1 answer
Update request cookie for Varnish ESI-include requests from initial `beresp`
I have an application that is fronted by a Varnish server. Parts of the page is rendered using ESI includes.
My problem is that the upstream response includes an encrypted session cookie, which among other things contains a CSRF token (no…

nikc.org
- 103
- 4
0
votes
0 answers
Apache cookie based site access
I store a single cookie in a file and want to retrict access to users who have that specific cookie set (with a specified name) and redirect others (from any page in the site) to my site's root. Since, my site uses a node backend to authenticate…

Qubarf
- 1
- 1
0
votes
1 answer
Redirecting Users to Specific Files With Cookies
Might be a dumb question, but I hope someone can explain it to me in a simple way for a beginner to understand.
Say I had a file only logged in users to my WordPress site are allowed to access. If I use a variable in nginx to redirect logged in…

John Deere
- 11
- 1
- 3
0
votes
1 answer
Setting SameSite=None on nginx reverse proxy
i got a problem using my nginx pod (on docker) as a reverse proxy when i set cookie rules in my configuration file.
Here is my nginx.conf file :
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
…

Alex B
- 1
- 1
0
votes
1 answer
asp.net Secure Cookies behind load balancer
This is a hybrid MVC/webforms asp.net application using framework 4.8, forms authentication and Membership. I need to implement secure cookies. The web site is behind a Coyote load balancer which I do not have access to (and never will have access…

Tom Regan
- 133
- 1
- 9
0
votes
0 answers
How to get nginx to strip cookies except for an allow list?
I'm trying to host sites that use things like WordPress, using nginx as a reverse proxy for PHP-FPM. Often these systems will set all kinds of annoying cookies that are unnecessary and/or the site does not have permission to set.
So I'm looking to…

Synchro
- 3,148
- 6
- 27
- 38
0
votes
1 answer
Nginx fastcgi_cache and kokos-analytics wordpress plugin
I have setup nginx to cache page requests as described in this tutorial.
There for looged in users the caching is disabled in this tutorial by an if request as:
# Don't use the cache for cookied logged in users or recent commenters
if ($http_cookie…

mathse
- 3
- 1
0
votes
1 answer
NGINX load balancing hash: use cookie value if present, ip_hash if not
I'm trying to figure out how to do some if-else logic in NGINX's upstream load-balancing directive. Basically, I'd like to use the method:
hash $cookie_my_cookie_name consistent;
... if the cookie (my_cookie_name) is present. If that cookie is not…

mmuurr
- 135
- 1
- 5
0
votes
1 answer
HAProxy 1.5 - Show Server Name or IP Address in response while behind DNS
Basically exactly what the title is. I have haproxy fronting a server, and infront of that a DNS to provide a human readable name. I would like to setup haproxy to include either the responding server name or IP address in the response. …

SVill
- 77
- 3
- 13