私は、HTTPS プロトコルを使用するサーバーで適切に動作する Django サイトを持っています。すべての種類のブラウザーで問題なく使用できます。
問題は、テキスト ブラウザを使用しようとするたびに、
禁じられた (403)
CSRF verification failed. Request aborted.
You are seeing this message because this HTTPS site requires a 'Referer header' to be sent by your Web browser, but none was sent.
This header is required for security reasons, to ensure that your browser is not being hijacked by third parties.
If you have configured your browser to disable 'Referer' headers, please re-enable them, at least for this site, or for HTTPS
connections, or for 'same-origin' requests.
Help
Reason given for failure:
Referer checking failed - no Referer.
私はリンク、lynx、さらにはemacsでw3mとelwを試しましたが、役に立ちませんでした。
HTTP サイトを使用する場合 (manage.py runserver を使用する場合など)、テキスト ブラウザーでサイトを問題なく使用できますが、実稼働サーバーには HTTPS プロトコルが必要なため、このエラーが発生します。
[ 編集: テスト目的で、django サイト用の HTTP サーバーを運用サーバーにデプロイしました。テキストブラウザでうまく動作します... ]
[編集: サーバーがスローするメッセージを考えると、Referer ヘッダーが指定されていないのはなぜですか? ]