-
Notifications
You must be signed in to change notification settings - Fork 0
🔒 Fix missing authentication on card API endpoint #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "status": "failed", | ||
| "failedTests": [] | ||
| } | ||
|
Comment on lines
+1
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Comment on lines
+1
to
+4
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Prompt To Fix With AIThis is a comment left during a code review.
Path: test-results/.last-run.json
Line: 1-4
Comment:
**テスト失敗状態のファイルがコミットされています**
`test-results/.last-run.json` の `"status": "failed"` はテスト実行が失敗した状態でコミットされていることを示しています。`failedTests` 配列は空ですが、テストランナー自体が正常に完了していない可能性があります。また、このファイルは `.gitignore` に含まれておらず、今後も生成のたびにコミット対象になる恐れがあります。`.gitignore` に `test-results/` を追加することを推奨します。
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ERROR_CACHE = "public, s-maxage=60, stale-while-revalidate=120"を 401 レスポンスにそのまま使用しています。Vercel の Edge Network など CDN はs-maxageが明示的に指定されている場合に 401 レスポンスをキャッシュする場合があります。認証していないリクエストが先に届くと、その CDN キャッシュが 60 秒間残り、同じ URL を後からリクエストした認証済みユーザーにも 401 が返ってしまいます。認証の成否はリクエストごとの Session 依存なので、401 にはno-storeまたはprivateを使うべきです。Prompt To Fix With AI