Font Size:
Ask Joget AI

API Domain Whitelist settings

Introduction

API Domain and IP Whitelist fine control lets administrators apply domain or IP access rules to specific JSON API URL patterns. The checks apply to JSON API requests under /web/json/, including built-in JSON APIs, plugin web services, GovCenter endpoints, and console AJAX calls.

New Feature
This is a new feature in Joget DX 9.1.3 and Joget DX 9.2. These settings appear in the System Administration tab in older versions 

How does it work?

In General Settings, open the API Whitelist tab. The API Domain Whitelist and API IP Whitelist settings have moved here from the System Administration tab.

Legacy whitelist behavior

The existing API Domain Whitelist and API IP Whitelist values remain available in the API Whitelist tab. When Use Fine Control? is not selected for a side, its legacy semicolon-separated whitelist continues to control access as before. A standalone * allows any value.

Security note
A legacy whitelist value of * allows all requests on that side. Domain and IP access are combined with OR logic, so a side with fine control turned off and a legacy * can allow a request even when the other side's fine-control rules would deny it. Review both sides before enabling this configuration.

Fine control rules

Domain and IP access control are configured independently. For either side:

  1. Select Use Fine Control?.
  2. Add a rule with a Label, a URL Pattern, and an Allowed Domain or Allowed IP.
  3. Save the General Settings.

While fine control is enabled for a side, its legacy whitelist field is disabled and ignored. Its rules remain saved if you turn fine control off.

Configure Fine Control Rules

  • Label: A name for the rule.
  • URL Pattern: An Ant-style path pattern. It is matched against the servlet path and path info, without the application context path. Start patterns with a slash. A single * matches one path segment; ** matches zero or more path segments.
  • Allowed Domain or Allowed IP: One or more values separated by semicolons. A standalone * allows any value. Other values, including *.example.com and 203.0.113.*, are treated as literal values rather than wildcard patterns.

Rules with an empty URL pattern or empty allowed value are dropped when you save.

How matching rules are applied

When fine control is enabled, a request that matches no rule is denied by that side. If multiple URL patterns match, the most specific pattern determines the result, regardless of row order. The Domain side always allows requests from the Joget server's own host.

A request is allowed when either the Domain side or the IP side allows it. Therefore, a legacy whitelist set to * on a side where fine control is off still allows requests, even if the other side's fine-control rules would deny them.

Request values and proxies

Domain access is checked using the request's Referer header. IP access uses the client IP; when X-Forwarded-For is present, the client IP is read from that header. IP rules are only as trustworthy as the proxy that supplies this header.

If a reverse proxy rewrites the Host header, the Joget console's own API requests may be denied when Domain fine control is enabled. Preserve the original Host header or add a rule for /web/json/** that allows the public domain before enabling Domain fine control.

Example: allow the SAML login endpoint

To allow the SAML Directory Manager service endpoint from any domain while applying other domain rules to other JSON endpoints:

  1. Enable Domain Use Fine Control?.
  2. Add a rule with a label such as SAML login, the URL pattern /web/json/plugin/org.joget.plugin.saml.SamlDirectoryManager/service, and the allowed domain value *.
  3. Add or retain rules for other endpoints according to the required access policy, then save.

Because the most specific matching pattern wins, a rule for this exact endpoint takes precedence over a broader plugin URL pattern.

Considerations

  • Domain or IP access: The controls are combined with OR logic. Check both sides when reviewing the effective access policy.
  • GovCenter: GovCenter install and publish checks use the Domain side only.

Expected outcome

After saving, requests that match an allowing rule are handled by the requested endpoint. Requests denied by the access check return HTTP 400. Test the required domains, IP addresses, and endpoints in the target environment before relying on the configuration.

Related documentation

Created by Debanraj Ravindran Last modified by Debanraj Ravindran on Nov 25, 2026