Subject Re: Setting options regarding security
From Boris Borzic <.> <Boris Borzic <.>>
Date Thu, 1 Jul 2021 18:51:18 -0400
Newsgroups xb2net

Martin Altmann <altmann@altem.de> wrote in
news:i5hep5pojtk7sgu.010720211654@BACKUP:

>> Please have a look at the FilterRequest function in WEBSERVE.PRG
>> included with v4.1. Some of these settings have been included, you
>> can add your own.
>>
>> Also, whenever you upgrade versions, I strongly recommend to compare
>> the included source code with previous versions as well as your own
>> versions of these. The changes in source code may include bug fixes,
>> security updates and best practice experience.
>>
> Boris,
> thank you very much - I did as advised but it is not working. The
> headers are ignored.
> My function looks similar to yours:

Works just fine on my end using the standard WEBSERVE.PRG. This is the
response captured in FireFox inspector:

HTTP/1.1 200 OK
Date: Thu, 01 Jul 2021 22:44:56 GMT
Server: Xb2.NET/4.1.00.355
Connection: Keep-Alive
Referrer-Policy: no-referrer, strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Cache-Control: max-age=86400
Content-Type: text/html
Last-Modified: Sat, 10 Apr 2021 08:00:00 GMT
Content-Length: 4841

--
Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools

Recent messages in this thread
 
-# Setting options regarding security Martin Altmann 01-Jul-2021 05:05 am
.-# Re: Setting options regarding security Boris Borzic <.> 01-Jul-2021 10:41 am
..-# Re: Setting options regarding security Martin Altmann 01-Jul-2021 04:54 pm
...-# Re: Setting options regarding security (Current message) Boris Borzic <.> 01-Jul-2021 06:51 pm
....-# Re: Setting options regarding security Martin Altmann 02-Jul-2021 01:47 am
.....-# Re: Setting options regarding security Martin Altmann 02-Jul-2021 03:48 am
......-# Re: Setting options regarding security Martin Altmann 04-Jul-2021 04:38 am
.......-# Re: Setting options regarding security Boris Borzic <.> 05-Jul-2021 06:44 pm
........\# Re: Setting options regarding security Martin Altmann 05-Jul-2021 11:12 pm