From 4a94c0cb578e5dca6bb43d60127121a16e7217b2 Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Thu, 20 Jun 2019 13:10:40 +0300 Subject: Feature: Add example of configuration for headers middleware --- .rr.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.rr.yaml') diff --git a/.rr.yaml b/.rr.yaml index 198f777b..c04daaff 100644 --- a/.rr.yaml +++ b/.rr.yaml @@ -28,6 +28,17 @@ http: # ssl private key key: server.key + # HTTP service provides built-in middlewares + middlewares: + # Middleware that adding Headers to the Request / Response + headers: + customRequestHeaders: + "Example-Request-Header": "Value" + customResponseHeaders: + "Access-Control-Allow-Origin": "*" + "Access-Control-Allow-Headers": "GET,POST,PUT,DELETE" + "X-Powered-By": "RoadRunner" + # HTTP service provides FastCGI as frontend fcgi: # FastCGI connection DSN. Supported TCP and Unix sockets. -- cgit v1.2.3