From 23289f11bb6c5e3b4a89e5522c14309bf6f46418 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Wed, 29 Jul 2015 22:27:24 -0700 Subject: PyCon AU Presentation --- src/2015-08-pyconau/index.html | 215 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 src/2015-08-pyconau/index.html (limited to 'src') diff --git a/src/2015-08-pyconau/index.html b/src/2015-08-pyconau/index.html new file mode 100644 index 0000000..dca0882 --- /dev/null +++ b/src/2015-08-pyconau/index.html @@ -0,0 +1,215 @@ + + + + + + + PyCon AU- Talking to Browsers with CORS + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+

Talking to Browsers with CORS

+ +

Breaking the single origin policy

+
+ +
+
+
Author:
+
+ Michael Krotscheck +
+ + krotscheck + +
+ + http://www.krotscheck.net + +
+
Source:
+
+ https://github.com/krotscheck/presentations +
+
License:
+
Creative + Commons Attribution 4.0 International
+
+
+ +
+

Topics Covered

+
+ +
+
+

Single Origin Policy

+
+
+

Security Concerns

+
+
+ +
+
+

Web Application Design Patterns

+
+
+

All-in-one

+
+
+

API + UI

+
+
+

API(s) + UI + UI-Server

+ +

+ +

+
+
+ +
+
+

CORS

+
+
+

CORS Preflight request

+
+
+

CORS Preflight response

+
+
+

CORS Http Request

+
+
+

CORS Http Response

+
+
+ +
+
+

Implementing CORS

+
+
Apache 2
+
mod_headers
+
Nginx
+
add_headers
+
Python WSGI
+
mod_headers
+
+
    +
  • Apache2: mod_headers
  • +
  • Nginx: add_headers
  • +
  • Python: Middleware
  • +
+
+
+

mod_headers

+
+
+

CORS via WSGI

+
+
+

oslo_middleware

+
+
+

other middleware

+
+
+ + +
+ + + + + + + + -- cgit v1.2.3