Skip to content
Discussion options

You must be logged in to vote

I found a solution exploring svelte real-world example.
Just use accept header. If it's 'application/json' is client ajax request, like so

https://github.com/wysher/sveltekit-auth-issue/pull/1/files

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wysher
Comment options

Answer selected by wysher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant