Langsung ke konten
Skillpedia
Keamanan75k · #2939

mixed-content

Fungsinya

Skill ini memeriksa situs HTTPS untuk script, gambar, stylesheet, dan frame yang dimuat lewat HTTP biasa. Skill ini cocok untuk pemilik situs dan developer yang ingin halaman aman mereka tetap aman.

Kapan dipakai

  • ✓Saat Anda meminta agent memeriksa situs aman untuk tautan resource yang tidak aman.
  • ✓Saat browser Anda memberi peringatan mixed content atau memblokir script di halaman HTTPS.
  • ✓Saat Anda memindahkan situs ke HTTPS dan ingin menemukan alamat http yang tersisa.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mixed-content/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Browser saya menyatakan sebagian konten di situs HTTPS saya tidak aman. Bisakah Anda menemukan dan memperbaiki tautan tersebut?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memindai sumber halaman, permintaan jaringan, dan CSS untuk mencari alamat HTTP biasa. Agent menggantinya dengan versi HTTPS dan dapat menambahkan kebijakan keamanan yang meningkatkan sisa alamat tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

Pertanyaan umum

Apa perbedaan antara mixed content aktif dan pasif?

Konten aktif seperti script diblokir oleh browser, sedangkan konten pasif seperti gambar dapat memunculkan peringatan.

Apa itu upgrade-insecure-requests?

Itu adalah pengaturan Content Security Policy yang memberi tahu browser agar memuat resource HTTP melalui HTTPS.

Bagaimana jika penyedia tidak mendukung HTTPS?

Skill menyarankan agar Anda menghosting resource sendiri atau mencari alternatif.

Detail

Deskripsi asli dari pembuat

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

repo: thedaviddias/Front-End-Checklist

Popularitas

Bintang GitHub
75k
Peringkat
#2939
Lisensi
MIT
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa