Supporting pages, examples and technical details in a cleaner layout.
This page summarizes the main security layers of the Militant API.
X-Frame-OptionsIn /api/.env:
API_REQUIRE_HTTPS=true
API_CORS_ORIGINS=https://app.example.com,https://mobile.example.com
API_DEBUG=false
CREATE USER 'api_user'@'localhost' IDENTIFIED BY 'strong_password';
GRANT SELECT, INSERT, UPDATE, DELETE ON militant.* TO 'api_user'@'localhost';
FLUSH PRIVILEGES;
tail -f /var/log/apache2/error.log | grep "API Security"
tail -f /var/log/apache2/access.log | grep "/api/"
Do not open a public issue for a security problem. Use the private security contact instead.