Skip to content

POSTs return 415 in prod but not dev #178

@idan

Description

@idan

Hello! Minimal example here:

Reproduction steps:

  • From /, click on either the "login" or "logout" buttons to trigger a form POST to /auth.
  • In development, everything works
  • When deployed to ASW, it throws a 415. The error page is sveltekit-generated, which means that ASW is working, but for some reason it's failing whatever check sveltekit before it throws a 415. I'll dig more into that.

I'm using Svelte 5.0.0-next.172, not sure if that's related — I'll try to make a svelte 4 example next and see if I get the same behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions