Trace
Trace

Reputation: 18859

Security difference jquery form submit vs ajax post?

Is there an actual difference between the options:

From a security point of view?
Note: we want to make a REStful POST.

Upvotes: 1

Views: 576

Answers (1)

user3117575
user3117575

Reputation:

They both perform the same HTTP request in this scenario. So they are both on the same level of security.

I'm guessing your concern should be focused on how that data is protected. Like having your application and/or API based on the HTTPS protocol and protecting against XSS attacks so data can't be leaked from the client.

The major differences the two would pose in a non-security aspect is user-friendliness. Ajax can be performed in the background and a form request cannot.

Upvotes: 3

Related Questions