Questions tagged [cookies]
132 questions
1
vote
0 answers
Re-writing cookie headers with NGINX not working
I have a working NGINX config as a reverse proxy. I'm trying to modify the upstream server's Cookie headers to add samesite=non and secure. According the to docs here:
proxy_cookie_flags
it should be easy.
I have this in my location block for my…

gwhiz
- 37
- 5
1
vote
2 answers
Check HTTP cookie value with nginx using map directive
I need to perform a redirect depending on the client's IP and the value that has been set in the cookie by WPML Wordpress plugin.
I prefer to use the map directive for this purpose.
Excerpt of nginx.conf
geoip_country…

Twissell
- 70
- 1
- 13
1
vote
1 answer
Is there any difference between using a cookie and using a normal header in the case of HTTP communication?
I have a system consisting of a custom software and an HTTP server. The software will send some requests with some headers and the HTTP server will send response back.
Now I have some custom authentication related headers that the server will send…

cr001
- 195
- 2
- 8
1
vote
0 answers
Apache Reverse Proxy SSL don't carrying cookies
We have an Apache 2.4 reverse proxy setup on a Windows server. The server should redirect users to other server via reverse proxy and store the cookies.
We set it up, it works fine except that no cookies are set on the client.

essere_digitale
- 11
- 1
1
vote
1 answer
Enable cross site functionality for a subset of my application
A part of the web application I'm working on is integrated with another web application that I do not have control over.
This integration has stopped working with the recent enforcement of the SameSite cookie attribute. For this integration to start…

Anton Wahlberg
- 11
- 3
1
vote
1 answer
Removing one cookie in proxy_pass of nginx
I'm trying to proxy_pass the whole request coming to my nginx to certain base URL to another upstream server removing server cookie. All other cookies, HTTP headers, the URL itself should be kept as is, sent to the upstream and response passed back…

Alexey
- 49
- 3
- 16
1
vote
1 answer
nginx http_push_preload and forwarding headers/cookies
I'm experimenting with pushing redirects using nginxs http2_push_preload on; directive.
In my application I detect redirects and add a Link: ; as=document; rel=preload header that matches the Location header.
This works well for some…

jaap3
- 121
- 3
0
votes
1 answer
503 service unavailable while trying to login through wordpress
I have no access to my site on Wordpress from any laptop browser I have.
But it's possible to log in from other computers and I can access it from my phone.
In the laptop browser, I type aomy.nl/wp-login.php, and I receive 503 Service unavailable. I…
0
votes
0 answers
Intercept location response to extract a cookie
I'm working on a project using nginx as reverse proxy and I'm trying to intercept a response from a specific location in order to extract a cookie and save it in a database.
I'm able to listen a location and verify the validity of a token added as a…

13KZ
- 51
- 2
0
votes
1 answer
Cookies present in the Chrome inspector are missing on the server
I have a setup comprised by 2 nginx instances connected one after the other. The first one is on one server (A) and the second one is on a second server (B):
user <-> nginx (A) <-> nginx (B) <-> api frontend (B)
<->…

user168317
- 145
- 8
0
votes
0 answers
Blocking Google Feud
I'm trying to block Google Feud on a Firewall/Proxy (Transparent Mode), but it seems a difficult task to accomplish..
I have some configurations for this task:
ACL rules, blocking the access to the domain *.googlefeud.com and blocking the string…

ivanleoncz
- 1,643
- 6
- 19
- 32
0
votes
0 answers
How to preserve cookie in HAProxy?
We currently have a the following setup:
[Client] -> [haproxy] -> [Nginx] -> [App Servers]
Nginx currently sets the cookie affinity to the app servers by setting a cookie i.e: public-client. However with the introduction of HAProxy the cookie is not…

kaizenCoder
- 343
- 2
- 8
- 22
0
votes
1 answer
Transform Apache Cookie logs to json with rsyslogd
I am logging cookie headers, some cookies may have due date, some others not, the same is tru for other cookie parameters, I need to implement a centrilaized logging, so before sending those to logstash I want to transform syslog to json. How can I…

Edik Mkoyan
- 115
- 5
0
votes
0 answers
Website access control via HTTP_REFER and COOKIE
I've made a webform on my own domain, outside the domain of my company. The form is made for employees of the company. When an employee wants to get to the form he has to login to the company website and click on a link. In this manner the employee…

ArtDijk
- 101
0
votes
0 answers
Apache on Windows, Cookie w/ PHP Sessions Bug
At work we use a Win7 box to run our site. I know not really an appropriate server OS, but it was working just fine until we upgraded to PHP 7.1 and Apache 2.4 from PHP 5.2 and Apache 2.2.
Now seemingly randomly, all PHP sessions break, and no new…

Hobbes
- 101
- 4