Welcome! Log In Create A New Profile

Advanced

400 bad requests now returning http headers? ( crossdomain.xml )

June 10, 2014 02:49PM
Hi,

I'm using Nginx to serve a file called crossdomain.xml, that file is used by Flash client to allow socket crossdomain Policy. It's a trick that many people are using instead of having a dedicated app to server that file. The trick is to return that xml file when nginx get a bad request. Since a recent version ( 1.4.7+ ) it seems that a bad request replies include HTTP headers and therefore breaking the Flash client ( instead of returning only the data without headers ). Is there a way to remove those headers? Also I searched in the changelog and didn't find any hints about that change?

Example: perl -e 'printf "<policy-file-request/>%c",0' | nc test.com 843

HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 10 Jun 2014 18:44:00 GMT
Content-Type: text/xml
Content-Length: 308
Connection: close
ETag: "5385f727-134"

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" secure="false" to-ports="*"/>
<site-control permitted-cross-domain-policies="master-only" />
</cross-domain-policy>

Regards,
Subject Author Posted

400 bad requests now returning http headers? ( crossdomain.xml )

Thaxll June 10, 2014 02:49PM

Re: 400 bad requests now returning http headers? ( crossdomain.xml )

Maxim Dounin June 10, 2014 03:38PM

Re: 400 bad requests now returning http headers? ( crossdomain.xml )

Thaxll June 10, 2014 04:07PM

Re: 400 bad requests now returning http headers? ( crossdomain.xml )

Maxim Dounin June 11, 2014 04:22PM

Re: 400 bad requests now returning http headers? ( crossdomain.xml )

Eberton June 15, 2014 08:12PM

Re: 400 bad requests now returning http headers? ( crossdomain.xml )

abyvatel November 27, 2017 10:33AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
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