couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "CORS" by DaveCottlehuber
Date Mon, 05 Nov 2012 12:18:51 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "CORS" page has been changed by DaveCottlehuber:
http://wiki.apache.org/couchdb/CORS?action=diff&rev1=2&rev2=3

Comment:
docs now match code

  
  == CORS References ==
  
-  * [[http://www.w3.org/TR/cors/#preflight-request]]
+  * [[http://www.w3.org/TR/cors/]]
   * [[http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/]]
   * [[https://developer.mozilla.org/En/HTTP_access_control]]
   * [[https://developer.mozilla.org/En/Server-Side_Access_Control]]
+  * [[https://developer.mozilla.org/en-US/docs/Same_origin_policy_for_JavaScript]]
  
  == Client-side CORS support and usage ==
  
-  * [[http://caniuse.com/cors]]
+  * [[http://caniuse.com/cors]] covers browser support
-  * [[http://www.html5rocks.com/en/tutorials/cors/]]
+  * [[http://www.html5rocks.com/en/tutorials/cors/]] has a nice example
   * [[http://www.kendoui.com/blogs/teamblog/posts/11-10-03/using_cors_with_all_modern_browsers.aspx]]
+ 
+ Note that at least IE >= 8 does not support pre-flight.
  
  = Features =
  
@@ -37, +40 @@

  
  == Enabling CORS ==
  
- To enable CORS support, you need to set the option {{{enable_cors = true}}} in the {{{httpd}}}
section of {{{local.ini}}}. Note that by default, all origins will be accepted.
+ To enable CORS support, you need to set the option {{{enable_cors = true}}} in the {{{[httpd]}}}
section of {{{local.ini}}}, and {{{[cors]}}} section with {{{origins = *}}}. Note that by
default, no origins are accepted, you must either use a wildcard or whitelist.
  
  {{{
  [httpd]
- ;port = 5984
- ;bind_address = 127.0.0.1
  enable_cors = true
+ 
+ [cors]
+ origins = *
+ 
  }}}
  
  == Tightening Access ==

Mime
View raw message