Skip to content

kumina/headers-by-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Headers-by-request

For each incoming Treafik route request, a Post request is send to the urlHeaderRequest endpoint. Which should response with a list of headers to apply to the original Traefik request. When the url

Configuration:

plugin:
  headers-by-request:
    urlHeaderRequest: "http://127.0.0.1/resolve"
    enableTiming: true

Request:

{ 
  "request": "https://route-to-app.domain.com/volume1"
}

Response:

{ 
  "headers": {
    "header1": "value1",
    "header2": "value2"
    }
}

About

Traefik middleware to request headers dynamically

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published