File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -211,5 +211,30 @@ Initialize sdk as shown above.
211211$options = new SecureNativeOptions();
212212$options->setProxyHeaders(["CF-Connecting-IP"]);
213213
214+ SecureNative::init();
215+ ```
216+
217+
218+ ## Remove PII Data From Headers
219+
220+ By default, SecureNative SDK remove any known pii headers from the received request.
221+ We also support using custom pii headers and regex matching via configuration, for example:
222+
223+ ### Option 1: Using config file
224+ ``` json
225+ {
226+ "SECURENATIVE_API_KEY" : " YOUR_API_KEY" ,
227+ "SECURENATIVE_PII_HEADERS" : [" apiKey" ]
228+ }
229+ ```
230+
231+ Initialize sdk as shown above.
232+
233+ ### Options 2: Using ConfigurationBuilder
234+
235+ ``` php
236+ $options = new SecureNativeOptions();
237+ $options->setPiiRegexPattern("/http_auth_/i");
238+
214239SecureNative::init();
215240```
You can’t perform that action at this time.
0 commit comments