secure cookies

オープン
#602 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
backend, cli

調査の方向性

まず、HTTPSターゲットに対する http-server の rewrite または proxy 処理と、レスポンス Cookie が処理される箇所を追跡します。localhost の SPA シナリオを確認し、その後、Secure とマークされた Cookie をローカルで設定できるようにオプションの動作を定義します。書き換えられたレスポンスが期待どおり Cookie を保持すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

stale

Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.

When rewriting to an https location with http-server -P https://www.amazon.com, and a cookie with a secure flag gets set, the cookie is lost, because http-server listens on http, and not on https.

What did you expect to happen?

It would be nice it there was an option to strip the secure flag, so the cookie gets set on localhost.

If the issue is a feature request, what is the motivation / use case for it?

developing a spa on localhost and rewriting api requests to a remote dev/test/staging server exposed on https.

主要言語
JavaScript
スター
14.2k
フォーク
1.6k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

http-party/http-server のほかの issue

http-party/http-server の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。