Access Server HTTP Headers?

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
michael.speth
OpenVpn Newbie
Posts: 2
Joined: Thu May 11, 2023 1:51 am

Access Server HTTP Headers?

Post by michael.speth » Thu May 11, 2023 2:09 am

Is it possible to add HTTP headers to the Access Server?

For instance, I would like to add the Content-Security-Policy header due to security requirements.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Access Server HTTP Headers?

Post by openvpn_inc » Tue May 16, 2023 10:56 am

Hello michael.speth,

Yes, see documentation here:
https://openvpn.net/vpn-server-resource ... tp-headers

Code: Select all

cd /usr/local/openvpn_as/scripts/
./sacli --key "cs.http_headers.1" --value "Content-Security-Policy: blablawhatever" ConfigPut
./sacli start
Good luck,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

michael.speth
OpenVpn Newbie
Posts: 2
Joined: Thu May 11, 2023 1:51 am

Re: Access Server HTTP Headers?

Post by michael.speth » Wed May 24, 2023 9:28 pm

openvpn_inc wrote:
Tue May 16, 2023 10:56 am
Yes, see documentation here:
https://openvpn.net/vpn-server-resource ... tp-headers

Code: Select all

cd /usr/local/openvpn_as/scripts/
./sacli --key "cs.http_headers.1" --value "Content-Security-Policy: blablawhatever" ConfigPut
./sacli start
Thank you!

Post Reply