In First-Party Mode, the Enforcer acts as a reverse proxy for client requests and sensor activity.
The Enforcer is configured with First-Party mode enabled by default.
To confirm that you have configured your Enforcer in First-Party mode, review the perimeterx http_filters in your config.yaml.
Below is an example of a http_filters entry from a config.yaml file that contains the minimum settings for the Enforcer:
http_filters config, the First-Party Mode is enabled in the Enforcer. (Continue to the Next Steps below.Below is an example of a http_filters entry from a config.yaml file that contains the minimum settings for the Enforcer
The presence of the px_first_party_disabled with a value of true confirms that the default configuration has been changed and First-Party mode is disabled.
In order to enable First-Party Mode, you need to set the px_first_party_disabled to false (or remove that configuration parameter at all) and redeploy your configuration and continue to the Next Steps below.
After configuring the enforcer to handle First-Party requests, complete the steps listed on the Integrate 1st-Party JS Snippet to confirm your snippet is setup to serve the Javascript Sensor via First-Party.