Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 532 Bytes

File metadata and controls

18 lines (13 loc) · 532 Bytes

nonce example

NGINX configuration found in nginx.conf will create a variable $nonceValue & will replace the placeholder **CSP_NONCE** with the value

set $nonceValue $cspNonce;
sub_filter **CSP_NONCE** $nonceValue;
docker build . -t affe:latest
docker run -p 8080:80 affe:latest

This example show how to make use of the lua-nginx-module to create a nonce value to make csp work