Chuyển đến nội dung
Skillpedia
Bảo mật75k · #2857

form-https

Skill này làm gì

Skill này kiểm tra form và các yêu cầu dữ liệu trên website có dùng địa chỉ HTTPS an toàn hay không. Skill dành cho lập trình viên thu thập thông tin từ khách truy cập.

Khi nào nên dùng

  • ✓Khi form đăng nhập hoặc đăng ký gửi dữ liệu đến một địa chỉ bắt đầu bằng http.
  • ✓Khi JavaScript của bạn gọi một endpoint http không an toàn.
  • ✓Khi site của bạn vẫn phục vụ một số trang qua http thường.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/form-https/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kiểm tra mọi form của tôi có gửi dữ liệu qua HTTPS không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent quét các action của form và các yêu cầu JavaScript tìm địa chỉ http không an toàn. Agent gợi ý chuyển sang https và cấu hình máy chủ chuyển hướng lưu lượng http thường.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Submit forms over HTTPS

A login form that posts credentials to an HTTP endpoint sends usernames and passwords as plain text over the network — anyone on the same Wi-Fi, the ISP, or a network proxy can read them without any special tools.

Quick Reference

  • Every <form action> URL must use https:// — never http://
  • Forms without an explicit action attribute submit to the current page URL — ensure the page itself is on HTTPS
  • Check fetch() and XMLHttpRequest calls in JavaScript — data posted to http:// endpoints is unencrypted
  • Browsers show a 'Not Secure' warning in the address bar when a form is on an HTTP page
  • From Chrome 86+, autofill is disabled on HTTP forms to protect credentials

Check

Scan all HTML form elements for action attributes pointing to http:// URLs. Check all JavaScript fetch() and XMLHttpRequest calls for http:// endpoints. Verify the current page URL is HTTPS so forms without an explicit action submit securely.

Fix

Replace all http:// form action URLs with https:// equivalents. Ensure the web server redirects HTTP to HTTPS (301) so that forms on the page also benefit. For JavaScript API calls, update all endpoint URLs to use https://.

Explain

Explain why form submissions over HTTP expose user data in transit, how network attackers can intercept plain HTTP traffic, and what the browser security indicators look like on insecure forms.

Code Review

Review server config, headers, forms, and integration points related to Submit forms over HTTPS. 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/form-https

Câu hỏi thường gặp

Vì sao HTTP thường lại quan trọng?

Dữ liệu gửi qua HTTP có thể bị bất kỳ ai trên cùng mạng đọc được, kể cả mật khẩu.

Trình duyệt hiển thị form không an toàn như thế nào?

Skill nói trình duyệt hiển thị cảnh báo Not Secure trên thanh địa chỉ đối với trang HTTP.

Điều này có ảnh hưởng đến tự động điền không?

Skill lưu ý rằng Chrome 86 trở lên tắt tự động điền trên form HTTP để bảo vệ thông tin đăng nhập.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing HTML forms, fetch/XHR calls, and form action attributes to ensure data is submitted exclusively over HTTPS.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2857
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự