PHP Classes

File: site/guides/security.md

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   site/guides/security.md   Download  
File: site/guides/security.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 544 bytes
 

 

Contents

Class file image Download

<!--@include: ../../SECURITY.md-->

CSRF and Content Security Policy

  • Components that post JSON (Scheduler, uploads, File Manager, ThemeBuilder) send the CSRF token in the `X-CSRF-TOKEN` header. Laravel checks it by itself; in Symfony and plain PHP check it in the endpoint.
  • Components write no inline scripts, so a strict Content Security Policy works with a nonce.
  • Data endpoints only accept declared fields: see Data endpoints.