Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [cookies]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

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 ...
user avatar
  • 103
1 vote
1 answer
183 views

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 ...
user avatar
  • 185
0 votes
0 answers
43 views

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,...
user avatar
  • 1
1 vote
0 answers
28 views

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 ...
user avatar
0 votes
1 answer
40 views

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 ...
user avatar
0 votes
1 answer
1k views

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 { ...
user avatar
  • 1
0 votes
1 answer
374 views

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 ...
user avatar
  • 123
0 votes
0 answers
118 views

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 ...
user avatar
  • 2,968
0 votes
1 answer
28 views

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 ...
user avatar
  • 3
1 vote
1 answer
154 views

Where does Chrome fetch my identity from after having deleted cookies?

I'm trying to figure out where does Google CHrome fetch my identity from when authenticating to an Identity Provider (SAML with certificate authentication) What I have tried : Delete all cookies, ...
user avatar
  • 282
1 vote
1 answer
278 views

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 ...
user avatar
0 votes
1 answer
1k views

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 (...
user avatar
  • 125
0 votes
1 answer
182 views

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 ...
user avatar
  • 77
0 votes
0 answers
1k views

nginx reverse proxy to Oracle ORDS/APEX - how are cookies set?

Using nginx to reverse proxy to Oracle's "Always Free Tier" in Autonomous Database which provides ORDS which connects to APEX in the database. Mainly because Oracle doesn't support vanity ...
user avatar
1 vote
1 answer
708 views

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 ...
user avatar
  • 49
1 vote
1 answer
169 views

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: <location>; as=document; rel=preload header that ...
user avatar
  • 121
0 votes
1 answer
65 views

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-...
user avatar
0 votes
0 answers
162 views

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 ...
user avatar
  • 51
2 votes
1 answer
3k views

Nginx preventing cookie from being sent from front to back end

I'm running a Golang back end on port 12345 and an Angular front end on port 8080. They communicate via websockets on a page called /consultation. When I open the firewall for both ports and have them ...
user avatar
  • 141
4 votes
1 answer
33k views

Nginx proxy cookies not set

Here's my situation, I have a Rails 4 app that can be accessed by multiple domains, depending on the domain, the content changes. Say the main domain is domain1 and all the other domains just use ...
user avatar
  • 222
7 votes
2 answers
353 views

How cookies work with non persistance load balencers

We have a Drupal application that uses sso to log users in. We are using AWS classic load balancers (ELB), AWS is telling us that there is no session persistence on the ELB. What I am trying to ...
user avatar
0 votes
1 answer
430 views

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 (...
user avatar
1 vote
0 answers
3k views

Cookie Does Not Contain The secure and HTTPOnly Attribute

While running a Qualys Vulnerability Scan on a website which is being developed I got the following vulnerability: Cookie Does Not Contain The "HTTPOnly" Attribute Cookie Does Not Contain The "...
user avatar
4 votes
1 answer
5k views

Configuring multiple ProxyPassReverseCookiePath in Apache HTTP

I have a server with an Apache reverse proxy in front. The server machine contains 2 web applications running under: localhost:8000/app and exposed as my.url.com/app1 localhost:8001/app and exposed ...
user avatar
  • 191
0 votes
0 answers
393 views

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 ...
user avatar
  • 1,383
0 votes
0 answers
1k views

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....
user avatar
1 vote
1 answer
3k views

extract query string param value in RewriteRule

I'm writing an apache 2.4 Rewrite rule in order to remove a query string param and create a cookie from its value. eg: http://example.com/?param1=value1&my_param=my_value&param2=value2 to ...
user avatar
  • 121
0 votes
1 answer
354 views

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 ...
user avatar
2 votes
0 answers
1k views

Cookies aren't being set/overwritten through nginx reverse proxy

For some reason, when I'm proxying my API request through an nginx reverse proxy, my cookies aren't being overwritten with the new values. I've tried adding the following to my nginx config, but I'm ...
user avatar
0 votes
0 answers
258 views

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 ...
user avatar
  • 101
3 votes
1 answer
13k views

What is the difference between http_cookie and cookie_name in Nginx?

I want to add remote ip as a Cookie in Nginx, so that it can be passed on to AWS Load Balancer for Load balancer stickiness. location / { proxy_set_header Cookie "$http_cookie; ip=$remote_addr"; ...
user avatar
0 votes
0 answers
1k views

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 ...
user avatar
  • 101
1 vote
1 answer
4k views

Information about securing cookies with path attribute with respect to ASP.NET and IIS

I need help with securing cookies for my web application. It's deployed in IIS and is built in ASP.NET MVC. These are the things that I need to get more information about Is the Sites folder in IIS ...
user avatar
3 votes
2 answers
2k views

Nginx reverse proxy - remove "Secure" from cookies

For the sake of development I need to make NGINX drop "Secure" flag from cookie headers. Set-Cookie:XSRF-TOKEN=zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzz; Path=/; Secure should become Set-Cookie:XSRF-TOKEN=...
user avatar
  • 140
11 votes
3 answers
45k views

Add samesite to cookies using Nginx as reverse proxy

With Nginx as reverse proxy, how do you add samesite=strict or samesite=lax to cookies?
user avatar
  • 213
1 vote
0 answers
2k views

NGINX stripping domain in Set-Cookie header

Problem: domains are stripped from the set-cookie header. httpoonly, expires, and path are all correct. My location block: location ~* ^/path { proxy_pass http://nodeserver; # this is an upstream ...
user avatar
  • 111
0 votes
0 answers
426 views

Delete cookies from specific domain

I've been asked if it's possible to delete cookies in IE from specific domains via GPO? I've googled around and I'm sure this is possible but haven't been able to find anything about deleting cookies ...
user avatar
  • 605
1 vote
1 answer
2k views

Failed to using powershell to get cookies

I am writing a powershell script to mimic a login process,and then catch data from web pages. I failed at the very begainning, I can't get into the login pages at all after I set up cookies. Here is ...
user avatar
  • 269
1 vote
0 answers
1k views

400 bad request on nginx proxy to tomcat but not on static content

We have been running into an issue when our cookies reach a certain size (over 7k) where nginx is returning 400 Bad Request with an empty response when proxying to our tomcat. This doesn't happen when ...
user avatar
  • 11
0 votes
2 answers
9k views

Varnish cache responese with "Set-Cookie" header

I have a page which sends a "Set-Cookie" header for something like the language depending on the URL. The thing is this page will get a fairly high hit rate but it's not an option right now to strip ...
user avatar
  • 218
1 vote
1 answer
2k views

stickysession not work fine in apache and two Glassfish Instances

I have two application that run in two Glassfish Instances, i configure my apache to use sticky session like so : ProxyPass / balancer://Appcluster/ stickysession=JSESSIONID But this not work 100% ...
user avatar
  • 111
1 vote
1 answer
2k views

How does the zScaler cookie authentication work?

I'm implementing a web filter for my organization and I'm considering zScaler. I do not want to use proxy PAC file. I just got off the phone with zScaler's sales and they claim that they can ...
user avatar
  • 13
1 vote
0 answers
1k views

pass cookie from http response via nginx reverse proxy

I have a problem with passing my cookie when I'm running an nginx as a proxy (in a docker container). Here is my configuration of my nginx proxy: location /test { proxy_pass http://...
user avatar
0 votes
1 answer
1k views

Modsecurity cookie match [closed]

I run a small webhosting service (CPanel + ModSecurity) and I personnaly host few laravel projects on it. I noticed that when I (or anyone) visit multiple pages quickly (one after the other), at some ...
user avatar
  • 141
1 vote
0 answers
36 views

Server can't parse cookie

I noticed the following messages in my TJWS log. [Mon Oct 03 21:28:28 EDT 2016] TJWS: An exception in parsing cookies: id=die(pi());; user=assert java.lang.IllegalArgumentException: Cookie name "; ...
user avatar
0 votes
0 answers
533 views

Resolving duplicate cookie error log messages in Apache 2.4

Running Apache 2.4.7, our error logs are cluttered with messages like: [core:error] ... AH00011: ap_cookie: client submitted cookie 'PHPSESSID' more than once: ... We haven't been able to determine ...
user avatar
  • 387
1 vote
1 answer
17k views

Set "Secure Flag" on Cookies for Only One (of many) Virtual Host on Apache

I'm hosting a number of sites on a single VPS (Debian Jessie, Apache 2.4). One of these sites forces HTTPS. On this and only this site, I would like to set the "Secure Flag" for cookies. I've found ...
user avatar
2 votes
0 answers
832 views

Cookie Secure Flag not persistent

I'm trying to implement a Secure flag for all cookies. I'm doing this via Headers. Here's how I did it: Header edit Set-Cookie (?i)^(.*)(;\s*secure)??((\s*;)?(.*)) "$1; Secure$3$4" It ...
user avatar
  • 1,916
0 votes
0 answers
2k views

Adding CSRF token in to Cookies of Post request in Haproxy

My post request to UAA is missing CSRF value i.e. X-Uaa-Csrf=2QytIy. This is required for login in to cloud foundry UAA. This is problem is because of internet domain name /private domain name mapping ...
user avatar
0 votes
1 answer
116 views

Serve media content only to logged in user using Apache

I recently saw this feature on another site where it would server media files, like uploaded images, only when the user is logged in. It would throw an "ACCESS DENIED" page otherwise. So, I ...
user avatar