<?php
// db_config.php

const DB_HOST = 'localhost';
/*define('DB_USER', 'a573f796_she_sherpadev');
define('DB_PASS', 'ed6cc0a0e89dfbce97d8f2cf5f2e916299d0e909080edada');*/
const DB_USER = 'root';
const DB_PASS = '';
const DB_NAME = 'a573f796_she_sherpadev';

if (isset($_SERVER['HTTP_ORIGIN'])) {
    header("Access-Control-Allow-Origin: " . $_SERVER['HTTP_ORIGIN']);
}

header("Content-Type: application/json");
header("Access-Control-Allow-Methods: POST, OPTIONS"); // Allow OPTIONS for preflight
header("Access-Control-Allow-Headers: Content-Type, Api-Key, Timestamp, Signature");

if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {

    exit();
}
