Skip to content

Commit ff7026e

Browse files
author
Inbal Tako
committed
Update redme
1 parent b3c9751 commit ff7026e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
214239
SecureNative::init();
215240
```

0 commit comments

Comments
 (0)