You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title implies, I am using the Vercel CLI and I am testing it locally through the 'vercel dev' command on a Svelte/Kit project. Everything works as expected, except POSTING data to self. I get a 403 Forbidden Error &
'Cross-site POST form submissions are forbidden' is returned. I fear this is to do with the origin, however I am unsure how to fix it.
I found a temporary solution which is to set the Content-Type header to 'application/json', instead of the default form data, although it would be nice for a fix to the real issue. Deploying through Vercel works great.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As the title implies, I am using the Vercel CLI and I am testing it locally through the 'vercel dev' command on a Svelte/Kit project. Everything works as expected, except POSTING data to self. I get a 403 Forbidden Error &
'Cross-site POST form submissions are forbidden' is returned. I fear this is to do with the origin, however I am unsure how to fix it.
I found a temporary solution which is to set the Content-Type header to 'application/json', instead of the default form data, although it would be nice for a fix to the real issue. Deploying through Vercel works great.
Beta Was this translation helpful? Give feedback.
All reactions