Questions tagged [cookies]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
55 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 ...
0
votes
0answers
17 views

Apache-Balanced PHP applicaion unable to handle logins

I'm trying to load-balance Chamilo (https://chamilo.org/it/) on 2 servers via Apache. When the load balancing is active, through some refresh, I'm logged out. Through some other refresh, I'm logged in ...
0
votes
1answer
31 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 ...
0
votes
0answers
33 views

Is it possible to receive secure cookies after Apache performs an http to https rewrite?

While updating our applications to deal with the samesite=none cookie changes we ran into this problem: In our vhost for an older application, we have this rule that rewrites http requests to https: ...
0
votes
0answers
46 views

How to remove TipMix cookies from response

After having set the TRAFFIC% in the Deployment Slots pane, all HTTP responses include the TiPMix and x-ms-routing-name cookie headers. This creates a problem in our IoT solution, so we need to get ...
0
votes
0answers
16 views

Chrome adding unknown fields in auth cookie

I am obeserving these extra values in my api auth cookie _delighted_fst=1567992159378:{}; __zlcmid=v5if2UTf2gtpte; _delighted_lst=1574124970407:{%22token%22:%22Hjrw1uPZoGM6tHfwMeLYQMxb%22}; ...
0
votes
0answers
6 views

How to make http_cookie work with specific content content in it in nginx?

I'm new to nginx, so don’t kick. Generally conveyed immediately to the point. There is a rule in which a certain setting for processing pages is triggered. The problem is that this rule would work ...
0
votes
1answer
29 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-...
0
votes
0answers
93 views

Nginx Gunicorn flask not serving cookies from flask

Using Nginx as webserver and Gunicoirn + Flask as reverse proxy for server side requests, this is the Nginx configuration server { listen 80; root /var/www/html; index index.php index....
0
votes
0answers
121 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 ...
2
votes
1answer
645 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 ...
2
votes
1answer
16k 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 ...
7
votes
2answers
102 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 ...
0
votes
1answer
150 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 (...
0
votes
0answers
2k 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 "...
1
vote
1answer
3k 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 ...
0
votes
0answers
193 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 ...
0
votes
0answers
668 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....
1
vote
1answer
2k 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 ...
0
votes
2answers
245 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 ...
2
votes
0answers
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 ...
0
votes
0answers
232 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 ...
2
votes
1answer
8k 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"; ...
0
votes
0answers
884 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 ...
1
vote
1answer
2k 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 ...
3
votes
1answer
1k 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=...
4
votes
2answers
13k 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?
0
votes
0answers
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 ...
0
votes
0answers
399 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 ...
1
vote
1answer
1k 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 ...
1
vote
0answers
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 ...
0
votes
2answers
6k 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 ...
1
vote
1answer
1k 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% ...
1
vote
1answer
1k 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 ...
1
vote
0answers
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://...
0
votes
1answer
708 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 ...
1
vote
0answers
33 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 "; ...
0
votes
0answers
356 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 ...
1
vote
1answer
15k 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 ...
2
votes
0answers
727 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 ...
0
votes
0answers
1k 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 ...
0
votes
1answer
65 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 ...
1
vote
0answers
328 views

Reverse Proxy Nginx but cookies don't get through for WP admin

I reverse proxy a blog. It's hosted on Apache under a subdomain blog.example.com. In Nginx I have the following config in a server block. Everthing works except the cookies for the WP Admin panel ...
1
vote
1answer
3k views

SecureCookies, HTTPOnly cookies, .Net, and SSL offloading

So I've been looking into implementing HttpOnly and SecureCookies in my web environment. I have an F5 as the load balancer and a couple of C# web applications hosted in iis 7.5 for the website. The ....
0
votes
0answers
929 views

Backreferencing a cookie value in rewriterule

I'm trying to backreference a cookie's value in a RewriteRule : # Trace rewrite rules log LogLevel alert rewrite:trace4 # Rewriting the URL, in the cookie's condition i've tried en alone, and en|fl|...
1
vote
1answer
2k views

modsecurity whitelisting certian types of cookies

I am seeing cookies being generated on our server which appear to be from 3rd party objects in the site and don't show themselves when one logs in or navigates through the site. The cookies are ...
3
votes
0answers
1k views

CloudFront + S3 Access Denied Using Signed Cookies

I'm trying to integrate signed cookies for a CloudFront distribution that's fed off of an S3 bucket but getting access denied error messages: <Error> <Code>AccessDenied</Code> ...
0
votes
1answer
148 views

phpinfo showing HTTP_ALLOWCOOKIES set to NO - how to change?

We have a dev and live server that were seemingly built identically. However the live server phpinfo() page shows the following in the "Apache Environment" section HTTP_ALLOWCOOKIES NO Don't see ...
0
votes
0answers
366 views

What can cause cookies to arrive empty to the server?

We experience an issue where in IIS advanced logs we see that the requests arrive with SOME of the cookie values missing. Of course the values are missing in the application layer as well. This is ...
13
votes
3answers
26k views

haproxy: how to prepare a server maintenance without kicking app sessions?

The issue I'm using haproxy to load balance web servers. I use session persistence with additional cookies as some applications use session files and these are not synchronized between servers. I ...