The Pre-Function Policy lets you dynamically run Lua code from AI Gateway before other Policies run in each phase.
This Policy is part of a pair of serverless Policies. If you need to run Lua code after other Policies in each phase, see the Post-Function Policy.
Warning: The Pre-Function and Post-Function Policies allow anyone who can create the Policy to execute arbitrary code. If your organization has security concerns about this, disable the Policies in your
kong.conffile.