Skip to content

Commit 51755e6

Browse files
committed
Add conditional steps to Bank Feeds SDK docs
1 parent 22a0ccd commit 51755e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/bank-feeds/bank-feeds-sdk.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ npm add @codat/sdk-bank-feeds-types
6262
yarn add @codat/sdk-bank-feeds-types
6363
```
6464

65+
**Conditional steps**
66+
67+
- **If you're using TypeScript**, extend your type declarations with our types by installing the types package using npm install --save-dev @codat/sdk-bank-feeds-types. Otherwise, delete the type-related code in the snippets.
68+
- **If you're using content security policy (CSP) headers**, edit these headers:
69+
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src`, `style-src`, `font-src`, `connect-src`, `img-src`).
70+
- Add `unsafe-inline` to `style-src`. Do _not_ use a hash because this can change at any time without warning.
71+
6572
Create a component which initializes the SDK:
6673

6774
```react

0 commit comments

Comments
 (0)