How to add custom headers to static files in fastapi
How to add custom headers to static files in fastapi Question: We are using the following method to mount the static files from a directory app.mount("/static", StaticFiles(directory="static"), name="static") We have sent a custom headers for api for security related steps using a common method before sending response to the client. Is there a way to …