diff options
author | Dmitry Patsura <[email protected]> | 2019-06-20 16:29:48 +0300 |
---|---|---|
committer | Dmitry Patsura <[email protected]> | 2019-06-20 16:29:48 +0300 |
commit | 3b16dd837a203fc4865e94a031b64a83080e12ef (patch) | |
tree | 93838ae9f56525983980a3f76ab60febfdfcf3d7 /.rr.yaml | |
parent | cf02521e1473ea099927e8fff1f0702f2418221d (diff) |
Feature(http): Cors - support exposedHeaders option
Diffstat (limited to '.rr.yaml')
-rw-r--r-- | .rr.yaml | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -30,12 +30,18 @@ http: # HTTP service provides built-in middlewares middlewares: - # Middleware to handle CORS requests + # Middleware to handle CORS requests, https://www.w3.org/TR/cors/ cors: + # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin AllowedOrigin: "*" + # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers allowedHeaders: "*" + # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods allowedMethods: "GET,POST,PUT,DELETE" + # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials allowCredentials: true + # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers + exposedHeaders: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma" maxAge: 600 # Middleware that adding Headers to the Request / Response headers: |