Skip to Main Content
Third-Party JavaScript
book

Third-Party JavaScript

by Anton Kovalyov, Ben Vinegar
March 2013
Intermediate to advanced content levelIntermediate to advanced
288 pages
9h 44m
English
Manning Publications
Content preview from Third-Party JavaScript

Chapter 4. Communicating with the server

This chapter covers

  • Same-origin policy (SOP)
  • Techniques to enable cross-domain messaging around the SOP
  • Security implications associated with SOP workarounds
  • Cross-origin resource sharing (CORS)

In previous chapters you learned how to distribute, load, and render a third-party JavaScript application on the publisher’s web page. You’re off to a great start, but so far your application only has access to the predefined data embedded in your JavaScript files. Unless you’re dealing with small, unchanging datasets, at some point you’ll need to make dynamic requests for data from your servers. And if your application is collecting data, either passively or directly via user input, you’ll likely want ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ajax: The Definitive Guide

Ajax: The Definitive Guide

Anthony T. Holdener III

Publisher Resources

ISBN: 9781617290541Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link