ユーザーが以下のような返信を投稿し、投稿後に誰かが編集しようとすると403エラーが発生します。
エラーの原因となる返信の例を以下に示します。
編集:変ですね。このフォーラムでは編集できますが、別のフォーラムでは403エラーになります。
そこでは信頼レベル4で、自分の返信を試したので、権限に問題はないはずです。
すべてのカードを追加したら、コマンドライン(Terminal.app)を開きます。以下のコードをコピーして貼り付けます。
mkdir ~/Desktop/cards
files=(~/Library/Passes/Cards/*.pkpass/cardBackgroundCombined@2x.png)
i=0
for f in "${files[@]}"; do
i=$(( i + 1 ))
cp $f ~/Desktop/cards/$i.png
done
こんにちは、Metaへようこそ
ブラウザのコンソール(およびNetworkタブ)を確認して、どのリクエストで403エラーが発生しているか確認していただけますか?
おそらくドラフトが原因だと思います 。
また、セーフモードでもまだ発生しますか?
応答ありがとうございます。チェックボックスをすべてオンにしたセーフモードを試しましたが、まだ発生します。
ネットワークタブとコンソールタブを以下に示します。エラーをトリガーすると、これら2つのコンソールタブのエラーが表示されます。
ユーザーから、Cloudflareが原因であるという提案がありました。
おっしゃる通りかもしれません。類似のトピックはこちらです。
Further to this, we nearly always find that 403 errors like this when attempting to create posts (especially with code blocks!) are due to an overzealous WAF believing the code blocks are shellcode or an injection attack.
I note that the instance in question seems to be fronted by a WAF:
○ → host hpc-discourse.uni.lu
hpc-discourse.uni.lu is an alias for fstc-waf2.uni.lu.
and thus I strongly suspect the 403 errors are coming not from Discourse, but from your WAF.
Inspecting the headers of th…
Cloudflare WAFでした。ご協力ありがとうございました。