░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/mandariconstructionsupplies.com/api/config
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: cors.php
<?php // config/cors.php $allowedOrigin = getenv("CORS_ALLOW_ORIGIN") ?: "https://mandariconstructionsupplies.com"; // Default for local dev header("Access-Control-Allow-Origin: " . $allowedOrigin); header("Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS"); header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With"); header("Access-Control-Allow-Credentials: true"); header("Access-Control-Max-Age: 86400"); // Cache preflight for 1 day // Handle preflight OPTIONS requests if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") { http_response_code(204); exit(); }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 cors.php
PHP
617 B
2026-07-02 15:48
EDIT
📄 database.php
PHP
1.5 KB
2026-07-02 15:47
EDIT