2.1.0 • Published 11 years ago

superstatic-proxy v2.1.0

Weekly downloads
44
License
MIT
Repository
github
Last release
11 years ago

Superstatic Proxy Service Travis

The Superstatic AJAX proxy lets you make requests to other domians without violating the Same-Origin Policy. For instance, you could mount a proxy called api that pointed to https://api.your-app.com. Once you've done so, a request to e.g. /__/proxy/api/users.json would be proxied through to https://api.your-app.com/users.json.

Configuration

The configuration for superstatic-proxy is an object where the keys are reference names for the service to which you're proxying and configuration details. An example (comments for clarity despite JSON syntax):

{
  "api": {
    // the origin of the server to which you want to make requests
    "origin": "https://api.your-app.com",
    
    // set default headers present on every request. these can be
    // overridden on individual AJAX requests
    "headers": {
      "Accept": "application/json"
    },
    
    // if true, send the cookies from the static app along to the server
    "cookies": false,
    
    // set a timeout for requests sent to the proxy (defaults to 30 seconds)
    "timeout": 30
  }  
}
2.1.0

11 years ago

2.0.3

12 years ago

2.0.3-rc2

12 years ago

2.0.3-rc1

12 years ago

2.0.2

12 years ago

2.0.1

12 years ago

2.0.0

12 years ago

2.0.0-rc1

12 years ago

1.0.3-rc19

12 years ago

1.0.3-rc18

12 years ago

1.0.3-rc17

12 years ago

1.0.3-rc16

12 years ago

1.0.3-rc15

12 years ago

1.0.3-rc14

12 years ago

1.0.3-rc13

12 years ago

1.0.3-rc12

12 years ago

1.0.3-rc11

12 years ago

1.0.3-rc10

12 years ago

1.0.3-rc9

12 years ago

1.0.3-rc8

12 years ago

1.0.3-rc7

12 years ago

1.0.3-rc6

12 years ago

1.0.3-rc5

12 years ago

1.0.3-rc4

12 years ago

1.0.3-rc2

12 years ago

1.0.3-rc1

12 years ago

1.0.2

12 years ago

1.0.1

12 years ago

1.0.0

12 years ago

0.4.1

12 years ago

0.4.0

12 years ago

0.3.0

12 years ago

0.2.0

12 years ago

0.1.0

12 years ago