Creating custom header middleware and encoding jwt

Hey guys,

I am trying to add request signature to my strapi implementation and if that specific header is missing to cut the request and say 400 error also I want to encrypt the jwt and validate it somewhere in order for the app to continue.

Can someone please tell me how this is expected to happend I know that I can write middleware for the new header right ?

System Information
  • Strapi Version: 4.8
  • Operating System: MacOS
  • Database: POSTGRE
  • Node Version: v18.13.0
  • NPM Version: 8.19.3
  • Yarn Version: