---
schema_version: "1"
id: 5c40e1f70b748477797d6744270510a8ef773d7d40f1f2f7918713667e014f73
title: Applying Policies in Local Mode
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.12/flex-gateway-secure-local.md
canonical_url: https://docs.mulesoft.com/gateway/1.12/flex-gateway-secure-local
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 41ea5d4dd2219da108edcfce4c84be58ca6b8b0a6cae84a560ac8d0d7d3fd2ba
description: MuleSoft Documentation Site
release: "1.12"
latest: false
---
---
product: Omni Gateway
version: 1.12
---

# Applying Policies in Local Mode

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

For Flex Gateway running in Local Mode, you apply API policies using
[local declarative configuration files](https://docs.mulesoft.com/gateway/1.12/flex-local-configuration-reference-guide). You specify the
location of these configuration files when you first run Flex Gateway.

See [Registering and Running Flex Gateway in Local Mode](https://docs.mulesoft.com/gateway/1.12/flex-local-reg-run) for more information
about how to start the gateway.

Refer to the following tutorials for examples on applying policies to APIs in Local Mode:

- [Secure an API with Basic Authentication and Rate Limiting](https://docs.mulesoft.com/gateway/1.12/flex-local-secure-api-with-basic-auth-policy)

- [Secure an API with an Automated Resource-Level Policy](https://docs.mulesoft.com/gateway/1.12/flex-local-secure-api-with-auto-policy)

- [Secure an API with a Custom Policy](https://docs.mulesoft.com/gateway/1.12/flex-local-deploy-custom-policy)

## See Also

- [Flex Gateway Overview](https://docs.mulesoft.com/gateway/1.12/)

- [Getting Started with Self-Managed Flex Gateway](https://docs.mulesoft.com/gateway/1.12/flex-gateway-getting-started)
