tests/test-hgweb-csp.t
branchstable
changeset 37828 3e3acf5d6a07
parent 37826 d105bbb74658
child 50725 7e5be4a7cda7
equal deleted inserted replaced
37827:11ee9bf24791 37828:3e3acf5d6a07
    55   content-security-policy: script-src https://example.com/ 'unsafe-inline'
    55   content-security-policy: script-src https://example.com/ 'unsafe-inline'
    56 
    56 
    57   $ get-with-headers.py --twice --headeronly localhost:$HGPORT repo1/static/style.css content-security-policy
    57   $ get-with-headers.py --twice --headeronly localhost:$HGPORT repo1/static/style.css content-security-policy
    58   200 Script output follows
    58   200 Script output follows
    59   content-security-policy: script-src https://example.com/ 'unsafe-inline'
    59   content-security-policy: script-src https://example.com/ 'unsafe-inline'
    60   500 Internal Server Error
    60   304 Not Modified
    61   [1]
    61   content-security-policy: script-src https://example.com/ 'unsafe-inline'
    62 
    62 
    63 repo page should send CSP by default, include etag w/o nonce
    63 repo page should send CSP by default, include etag w/o nonce
    64 
    64 
    65   $ get-with-headers.py --headeronly localhost:$HGPORT repo1 content-security-policy etag
    65   $ get-with-headers.py --headeronly localhost:$HGPORT repo1 content-security-policy etag
    66   200 Script output follows
    66   200 Script output follows