<@U04UQ68083H> What does the expose_internal_error...
# ory-copilot
s
@chilly-king-10285 What does the expose_internal_errors setting do?
c
A message from kapa.ai
The
expose_internal_errors
setting in Ory is used to control whether debug information is exposed in the URL. When this environment variable is set to true, Ory Hydra will set the
error_debug
query parameter if debug information is available. However, it's important to note that this setting should not be used in a production environment as it could potentially lead to important data leaks. Here is an example of how to set this environment variable:
Copy code
bash OAUTH2_EXPOSE_INTERNAL_ERRORS=true
Please refer to the [Ory Hydra FAQ](https://www.ory.sh/docs/hydra/faq) for more information.