Settings
Notes:
- This stores the API key in your browser's
localStorageonly. - Server-side environment variables are unchanged by this page.
- When present in localStorage, client requests will send the key as
x-youtube-api-key.
How to get a YouTube Data API key — 단계별
- Google Cloud Console 접속: https://console.cloud.google.com/
- 프로젝트 생성(또는 기존 프로젝트 선택)
- API 활성화: "YouTube Data API v3" 사용 → Enable API
- Credentials → Create → API key 생성 → 복사
- 권한 제한(중요): Application restrictions → HTTP referrers에 `atcloud365.com/*` 추가, API restrictions → **YouTube Data API** 로 제한
- (선택) 더 많은 쿼터 필요하면 결제 설정 및 Quotas 확인 → Quotas
- 앱에 적용:
- 개발/테스트: `Settings` 페이지에 붙여넣어 `localStorage`에 저장
- 프로덕션: 서버 환경변수 `YOUTUBE_API_KEY`에 설정 (권장)
유용한 링크
보안 팁
- 반드시 API 키에 도메인 및 API 제한을 걸어 노출 위험을 줄이세요.