本文へスキップ
Skillpedia
セキュリティ75k · #2857

form-https

できること

このスキルは、ウェブサイトのフォームとデータのリクエストが、安全な HTTPS のアドレスを使っているかを確認します。訪問者から情報を集める開発者向けです。

使う場面

  • ✓ログインやサインアップのフォームが、http で始まるアドレスへデータを送っているとき。
  • ✓JavaScript が、安全でない http のエンドポイントを呼び出しているとき。
  • ✓サイトの一部のページがまだ平文の http で提供されているとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/form-https/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“すべてのフォームが HTTPS でデータを送っているか、確認してもらえますか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、フォームの送信先と JavaScript のリクエストに、安全でない http のアドレスがないかをスキャンします。https に切り替えることと、平文の http の通信を HTTPS へリダイレクトするようサーバーを設定することを提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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

よくある質問

平文の HTTP はなぜ問題なのですか?

HTTP で送られたデータは、同じネットワーク上の誰にでも読まれる可能性があり、パスワードも含まれるからです。

ブラウザは安全でないフォームをどう表示しますか?

HTTP のページでは、アドレスバーに「保護されていません」の警告を表示すると、このスキルは説明しています。

自動入力に影響しますか?

Chrome 86 以降は、認証情報を守るため、HTTP のフォームで自動入力を無効にすると、このスキルは指摘しています。

詳細

作者による元の説明

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

人気

GitHubのスター
75k
ランキング
#2857
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル