Based on the following issue ((mw) global response header transform middleware · Issue #2453 · TykTechnologies/tyk · GitHub) and the corresponding pull request, we should be able to add a global response header for all responses of our API definition using the global_response_headers configuration and the response_processors configuration to register the response processor middleware. Currently, we are on version 2.9.1 of the Tyk API Gateway and looking at the code of that version, this functionality should be available (although not documented). However, it does not seem to be working for me and we’re clueless on what we’re missing here. Any ideas?
Our API definition looks like this (we’re trying to add the Strict-Transport-Security header to all responses):
Hello @djairhogeuens yes. The code is in there however, it was not enabled at that point.
For future references Tyk has backward and forward compatibility so you should have no problem moving between versions. The only thing you will lose in backward compatibility is the features associated with the versions.