Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CORS + EmberJS

CORS + EmberJS

Quick little lightning talk on CORS + EmberJS.
Demo app here: https://github.com/patricksrobertson/stepper/blob/master/app/js/app.coffee

Patrick Robertson

February 21, 2014
Tweet

More Decks by Patrick Robertson

Other Decks in Technology

Transcript

  1. Snowflake is our authentication service/app. It is an OAuth 2.0

    provider — it can provide a secure token for anything that speaks HTTP
  2. But it’s hard to connect our rich client apps directly

    to our services - browsers cannot initiate connections to other origins - Servers cannot do it easily either
  3. The idea is simple: - We do an AJAX options

    request for a resource - The server confirms what request types / headers are allowed - The server can limit specific origins or restrict to specific origins as well