Skip to content
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

11 solved 500 error #12

Merged
merged 2 commits into from
Aug 14, 2023
Merged

11 solved 500 error #12

merged 2 commits into from
Aug 14, 2023

Conversation

shinosaki
Copy link
Owner

@shinosaki shinosaki commented Aug 14, 2023

close #11

  wrangler.tomlがない場合、上位のwrangler.tomlが読み込まれてしまうから
  Cloudflare WorkersはFetch APIの`credentials: 'include'`に対応していない。
  そのため、リクエストに含まれるcookieをFetch APIのリクエストヘッダに直接追加することで解決。

  また、+page.jsではなく+page.server.jsでないとcookiesを参照できない。
@shinosaki shinosaki linked an issue Aug 14, 2023 that may be closed by this pull request
@shinosaki shinosaki merged commit 649e935 into main Aug 14, 2023
@shinosaki shinosaki deleted the 11-solved-500-error branch August 14, 2023 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

500エラーが発生する
1 participant