Upload
pamselle
View
332
Download
2
Embed Size (px)
DESCRIPTION
A lightning talk given for #PTW14 Dev Day describing simple proxying in Rails as an alternative path to being able to use CORS.
Citation preview
STUPIDLY SIMPLE PROXYING IN RAILSPAM SELLE, COMCAST INTERACTIVE MEDIA
ABOUT ME- Engineer for Xfinity.com
- Comcast Interactive Media
- Ruby
- JavaScript (PhillyJSDev!)
WHAT?
A proxy is an intermediary used for two servers talking to another.
BUT WHY?
- JavaScript!
- CORS
- … but we can’t always have nice things
LET’S TALK ABOUT : RACK
User
Rack::Proxy
Authentication Layer
RailsEngines
RACK::PROXY- Disclaimer: We use our own lib
- Gem! Rack Streaming Proxy https://github.com/zerowidth/rack-streaming-proxy
- “Streaming proxy for Rack, the rainbows to Rack::Proxy's unicorn”
RACK PROXY DEMO!
THANKS!
Pam Selle
@pamasaur
thewebivore.com