본문으로 건너뛰기
Skillpedia
보안75k · #2939

mixed-content

하는 일

이 스킬은 HTTPS 사이트에서 일반 HTTP로 로드되는 스크립트, 이미지, 스타일시트, 프레임을 확인합니다. 보안 페이지를 안전하게 유지하려는 사이트 운영자와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓보안 웹사이트에서 안전하지 않은 리소스 링크를 찾아 달라고 요청할 때.
  • ✓브라우저가 혼합 콘텐츠를 경고하거나 HTTPS 페이지의 스크립트를 막을 때.
  • ✓사이트를 HTTPS로 옮긴 뒤 남은 http 주소를 찾고 싶을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mixed-content/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mixed-content/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“브라우저가 HTTPS 사이트의 일부 콘텐츠가 안전하지 않다고 해요. 그 링크를 찾아서 고쳐 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 페이지 소스, 네트워크 요청, CSS에서 일반 HTTP 주소를 찾습니다. 이를 HTTPS 버전으로 바꾸고, 남은 것은 자동으로 업그레이드하도록 보안 정책을 추가할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Avoid mixed content on HTTPS pages

Active mixed content (scripts loaded over HTTP into an HTTPS page) gives network attackers the ability to execute arbitrary JavaScript on your page — the same power as XSS, despite the page itself being served over HTTPS.

Quick Reference

  • Active mixed content (scripts, iframes, stylesheets) is blocked outright by all modern browsers
  • Passive mixed content (images, audio, video) triggers a security warning and may be upgraded or blocked
  • Use upgrade-insecure-requests CSP directive to automatically upgrade HTTP sub-resources to HTTPS
  • Audit all hardcoded http:// URLs in HTML, CSS, and JavaScript
  • The Content-Security-Policy: upgrade-insecure-requests directive is the most practical fix for legacy content

Check

Scan the page source and network requests for any HTTP resources loaded on an HTTPS page. Check <script src>, <img src>, <link href>, <iframe src>, and CSS url() values for http:// URLs. Also check the Content-Security-Policy header for the upgrade-insecure-requests directive.

Fix

Replace all http:// resource URLs with https:// equivalents. If the resource provider does not support HTTPS, host the resource yourself or find an alternative. Add Content-Security-Policy: upgrade-insecure-requests as a safety net for any remaining HTTP URLs.

Explain

Explain the difference between active and passive mixed content, why active mixed content is blocked by browsers, and how the upgrade-insecure-requests CSP directive works.

Code Review

Review server config, headers, forms, and integration points related to Avoid mixed content on HTTPS pages. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/security/mixed-content

자주 묻는 질문

능동적 혼합 콘텐츠와 수동적 혼합 콘텐츠의 차이는 무엇인가요?

스크립트 같은 능동 콘텐츠는 브라우저가 막고, 이미지 같은 수동 콘텐츠는 경고를 띄울 수 있습니다.

upgrade-insecure-requests는 무엇인가요?

브라우저가 HTTP 리소스를 HTTPS로 대신 로드하도록 알려 주는 콘텐츠 보안 정책 설정입니다.

제공자가 HTTPS를 지원하지 않으면 어떻게 하나요?

리소스를 직접 호스팅하거나 다른 대안을 찾으라고 스킬은 제안합니다.

상세 정보

작성자의 원본 설명

Use when reviewing an HTTPS page for resources (scripts, images, stylesheets, iframes) that are loaded over plain HTTP.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2939
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬