httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donatas Abraitis <donatas.abrai...@gmail.com>
Subject HTTP_FORBIDDEN and sub-requests
Date Fri, 14 Apr 2017 09:55:00 GMT
Hi folks!

I have a such code snippet:

char *proxy_ts = (char *) apr_table_get(r->headers_in, conf->deny_header);
if (!proxy_ts)
return HTTP_FORBIDDEN;
apr_table_unset(r->headers_in, conf->deny_header);

This unsets the arbitrary header properly in application (phpinfo()), but
if the site is non-single page (with many images, css, js, etc.) it always
returns 403. It looks like there is some kind of sub-requests for those
resources.

How do you solve such cases with requests?

-- 
Donatas

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message