summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krotscheck <krotscheck@gmail.com>2016-05-04 10:25:57 -0700
committerMichael Krotscheck <krotscheck@gmail.com>2016-05-04 10:25:57 -0700
commitea167241d483e678a766a936d8d6208e85341184 (patch)
tree567fde5ee840a1e55ae91b304d539dffd4d1d010
parent9673e634966df3792d4103e5fd7ac156cd9ba677 (diff)
downloadoslo-middleware-3.10.0.tar.gz
Removed simple headers from documentation examples3.10.0
These headers were removed from the defaults in https://review.openstack.org/#/c/293566/ - as they are already automatically managed in accordance to the CORS specification. This patch removes them from the example code. Change-Id: Ic2728d65c31dcd2f6a887ce8b112f544fd5730f3
-rw-r--r--doc/source/cors.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/cors.rst b/doc/source/cors.rst
index 99e5dc0..2788096 100644
--- a/doc/source/cors.rst
+++ b/doc/source/cors.rst
@@ -52,8 +52,8 @@ something like this::
allowed_origin=https://website.example.com:443,https://website2.example.com:443
max_age=3600
allow_methods=GET,POST,PUT,DELETE
- allow_headers=Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma,X-Custom-Header
- expose_headers=Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma,X-Custom-Header
+ allow_headers=X-Custom-Header
+ expose_headers=X-Custom-Header
This middleware permits you to override the rules for multiple
`allowed_origin`'s. To express this in your configuration file, first begin
@@ -102,8 +102,8 @@ will add CORS support.::
allowed_origin=https://website.example.com:443,https://website2.example.com:443
max_age=3600
allow_methods=GET,POST,PUT,DELETE
- allow_headers=Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma,X-Custom-Header
- expose_headers=Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma,X-Custom-Header
+ allow_headers=X-Custom-Header
+ expose_headers=X-Custom-Header
If your application is using pastedeploy, but would also like to use the
existing configuration from oslo_config in order to simplify the points of