Skip to content

Commit

Permalink
chore: document custom headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe authored Aug 23, 2024
1 parent b7b0029 commit 2e22724
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions importer-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,22 @@ You can also use Chrome extensions like:

to disable CORS headers or set a custom cookie / referer for some of the requests made by the site.

### Custom headers

Using the following command, you can define custom header sent by the proxy to the remote host:

```
aem import --headers-file ./headers.json
```

This is useful to control the headers of the proxied request. One typical usecase is to define the `Authorization` header or the `Cookie` header to authenticate to the remote host. The `headers.json` file would then look like this:

```
{
"Authorization": "Bearer your_token_here"
}
```

### Images

When the import process creates the docx, images are downloaded and inlined inside the Word document. Later, when the page is previewed for the first time, the images are then uploaded to the AEM Edge Delivery media bus.
Expand Down

0 comments on commit 2e22724

Please sign in to comment.