CHAPTER 8

image

Cross Domain and Push Communication

In this chapter, you’ll explore how to overcome browser restrictions when it comes to crossing the origin boundaries in AJAX communication. Moreover, since all modern web applications need to have a flavor of real-time to them, you’ll look at how you can facilitate push communication from the Web API to the client and how to integrate real-time duplex communication between the client and your Web API application.

You will learn how to do the following:

  • Use JSONP and CORS for cross-origin communication (Recipes 8-1, 8-2, and 8-3)
  • Support streaming and pushing data from Web API with PushStreamContent ...

Get ASP.NET Web API 2 Recipes: A Problem Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.