| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/client-portal-laravel/releases/20260626120707/config/ |
Upload File : |
<?php
declare(strict_types=1);
/*
* Cross-Origin Resource Sharing (CORS) configuration.
*
* The portfolio site at scopeforged.com makes browser-side GET requests to
* portal.scopeforged.com/api/v1/achievements (and /tags). Allowed origins
* are explicit — no wildcard — so credentials/cookies stay safe even if a
* future endpoint accepts them. Adding a new portfolio domain is a one-line
* change here.
*/
return [
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['GET', 'OPTIONS'],
'allowed_origins' => [
'https://scopeforged.com',
'https://www.scopeforged.com',
'http://scopeforged.test:8000',
'http://localhost:3000',
],
'allowed_origins_patterns' => [],
'allowed_headers' => ['Accept', 'Content-Type', 'X-Requested-With'],
'exposed_headers' => [],
'max_age' => 3600,
'supports_credentials' => false,
];