The following example shows how to use the crypto Web API in your Middleware to redirect requests with a unique token.
Your middleware file should be placed at the root of your project. If you are using the src directory, the file should be placed in the src directory.