Skip to content
Snippets Groups Projects
  • Jan de Mooij's avatar
    Make POST template compatible with CSP (#635) · 9c49e503
    Jan de Mooij authored
    See issue #593 for a problem description.
    SimpleSamlPHP makes use of unsafe inline Javascript and CSS elements.
    Although most generated HTML uses SimpleSamlPHP's own headers, the
    keepPost option in an authentication request uses the headers of
    the PHP application it is sent from. This forces web applications
    using SimpleSamlPHP to allow 'unsafe-inline' in their Content
    Security Policy.
    
    This commit fixes this issue for the keepPost page ''only'', to
    allow PHP applications using SimpleSamlPHP to use a more strict
    Content Security Policy. This does not take away from possible
    XSS vulnerabilities in other parts of SimpleSamlPHP.
    9c49e503
Code owners
Assign users and groups as approvers for specific file changes. Learn more.