← PHP / Laravel 목차

PHP-032 / 중급

CORS 와일드카드 + 자격증명 허용

A05:2021 Security Misconfiguration · CWE-942 Permissive Cross-domain Policy

왜 문제가 될까요?

임의 사이트가 로그인 사용자의 데이터를 읽을 수 있다.

이렇게 수정하세요

php
'allowed_origins' => ['https://app.example.com'],
'supports_credentials' => true,

더 읽기