Welcome! Log In Create A New Profile

Advanced

Re: Content-Security-Policy header gets lowercased

Francis Daly
October 08, 2015 03:30AM
On Wed, Oct 07, 2015 at 12:19:56PM +0200, Joó Ádám wrote:

Hi there,

> I noticed that when adding a `Content-Security-Policy` header to the
> response, the header name gets lowercased. Neither
> `Content-Security-Polic` or `Content-Security-Policyy`, or any other
> header I came across gets lowercased. Is this a bug?

Works for me:

===
server {
add_header Content-Security-Policy "nginx $request_uri";
listen 8195;
}
===

$ curl -sI http://localhost:8195/300.txt | grep nginx
Server: nginx/1.9.5
Content-Security-Policy: nginx /300.txt

How can I reproduce the problem that you see?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Content-Security-Policy header gets lowercased

Joó Ádám October 07, 2015 06:22AM

Re: Content-Security-Policy header gets lowercased

Francis Daly October 08, 2015 03:30AM

Re: Content-Security-Policy header gets lowercased

Joó Ádám October 08, 2015 06:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready