Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:39:48+00:00 2026-05-30T15:39:48+00:00

I am architecting a project which uses jQuery to communicate with a single web

  • 0

I am architecting a project which uses jQuery to communicate with a single web service hosted inside sharepoint (this point is possibly moot but I include it for background, and to emphasize that session state is not good in a multiple front end environment).

The web services are ASP.Net ASMX services which return a JSON model, which is then mapped to the UI using Knockout. To save the form, the converse is true – JSON model is sent back to the service and persisted.

The client has unveiled a requirement for confidentiality of the data being sent to and from the server:

  1. There is data which should only be sent from the client to the server.
  2. There is data which should only appear in specific views (solvable using ViewModels so not too concerned about this one)
  3. The data should be immune from classic playback attacks.

Short of building proprietary security, what is the best way to secure the web service, and are there any other libraries I should be looking at to assist me – either in JavaScript, or .Net

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:39:49+00:00Added an answer on May 30, 2026 at 3:39 pm

    I’ll post this as an answer…for the possibility of points :)…but I don’t know that you could easily say there is a “right way” to do this.

    The communications sent to the service should of course be https. That limits the man-in-the-middle attack. I always check to see that the sending client’s IP is the same as the IP address in the host header. That can be spoofed, but it makes it a bit more annoying :). Also, I timestamp all of my JSON before send on the client, then make sure it’s within X seconds on the server. That helps to prevent playback attacks.

    Obviously JavaScript is insecure, and you always need to keep that in mind.

    Hopefully that gives you a tiny bit of insight. I’m writing a blog post about this pattern I’ve been using. It could be helpful for you, but it’s not done :(. I’ll post a link sometime tonight or tomorrow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm architecting a web service where users can update, for example, a blog by
I am architecting a .net web solution which will run on 5 different WCF
I am architecting a web solution which takes uploaded files and places them on
I'm taking on the re-architecting of a pair of applications which use Hibernate in
I'm confused as to how to accomplish this. I have a page which, has
So as I am architecting my project, I'm thinking I must be doing something
I am architecting a software project and I want to create a SAAS (Software
I watched Google Web Toolkit Architecture: Best Practices for Architecting Your GWT App and
I'm struggling to implement a maybe monad - which I've called Nullable in this
While architecting any n-tier intranet applications, do I have to consider anything about firewalls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.