This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Can I send a POST request to an SPA application?
Post Body

Ok, I don't* think this is possible, but it's crossed my mind. Lots of websites are pieced out to a frontend SPA and a backend API, so you can't technically send a POST to the URL that the SPA works off of -- you have to send it to the backend API.

We use GET requests on SPAs because they can decypher things like path parameters when loading up the javascript and do the appropriate logic.

But we can't do the same thing for a POST request, right? The SPA can't read the body, right? Am I going insane?

(Note: looking into this because of 3rd party webhook-like integrations)

Author
Account Strength
90%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,805
Link Karma
963
Comment Karma
765
Profile updated: 15 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 months ago