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?
On Tue, Jun 10, 2014 at 02:49:58PM -0400, Thaxll wrote:
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?
Thank you for the quick reply, I guess there is no workaround for that
problem? It isn’t possible to remove headers or specify a dummy protocol
for
Nginx?
On Tue, Jun 10, 2014 at 04:07:28PM -0400, Thaxll wrote:
Hi Maxim,
Thank you for the quick reply, I guess there is no workaround for that
problem? It isn’t possible to remove headers or specify a dummy protocol for
Nginx?
I don’t think there is anything that can be done at the
configuration level. On the other hand, it should be more or less
trivial to write a module to force nginx to think the protocol was
HTTP/0.9 and to respond accordingly.