@ -52,3 +52,4 @@ MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
SANCTUM_STATEFUL_DOMAINS=yxbd-fangke.ali251.langye.net,localhost,127.0.0.1,127.0.0.1:8020
CORS_ALLOWED_ORIGINS=https://yxbd-fangke.ali251.langye.net,http://localhost:8020,http://127.0.0.1:8020
@ -19,7 +19,10 @@ return [
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins' => array_filter(array_map('trim', explode(',', env(
'CORS_ALLOWED_ORIGINS',
'https://yxbd-fangke.ali251.langye.net,http://localhost:8020,http://127.0.0.1:8020'
)))),
'allowed_origins_patterns' => [],
@ -29,6 +32,6 @@ return [
'max_age' => 0,
'supports_credentials' => false,
'supports_credentials' => true,
];