tool::http-status-detail
303 See Other
Redirect to another resource using GET.
ステータスコード
303
名前
See Other
カテゴリ
3xx詳細説明
HTTP 303 See Otherは、処理後に別のURLをGETで取得するよう指示するリダイレクトです。Post/Redirect/Get(PRG)パターンの中核で、POSTリクエストでデータを処理した後に結果ページへリダイレクトする際に使用します。ブラウザのリロード時にフォームが再送信される問題を防ぎます。
主な原因
- ▸フォーム送信後に結果ページへリダイレクトする場合
- ▸ログイン後にダッシュボードへ遷移する場合
- ▸決済完了後に確認ページへ遷移する場合
- ▸POSTリクエスト処理後にGET結果ページへ切り替える場合
解決方法
- 1.303はPost/Redirect/GetパターンにおけるPost/Redirect/Get正常なレスポンスです
- 2.Locationヘッダーに正しいリダイレクトURLを設定してください
- 3.Post/Redirect/Getパターンが正しく実装されているか確認してください
関連HTTPヘッダー
Locationレスポンス例
HTTP/1.1 303 See Other Location: /order/12345/confirmation
関連ステータスコード
300Multiple ChoicesMultiple options for the requested resource.→301Moved PermanentlyThe resource has permanently moved to a new URL.→302FoundThe resource is temporarily at a different URL.→304Not ModifiedThe cached version is still valid; no new content to return.→307Temporary RedirectTemporary redirect preserving the original HTTP method.→
ad · 300×250
// related tools