Skip to content

Authentication against API

If the STAC API you're using needs some kind of authentication, you can pass it through any core component options. Parameter fetch-options allows you to set custom parameters for the JS fetch function, like the credentials setting. For example:

<pnx-viewer
    endpoint="https://your-secured-stac.fr/api"
    fetch-options='{ "credentials": "include" }'
/>