openannotation / annotator

Annotation tools for the web. Select text, images, or (nearly) anything else, and add your notes.
http://annotatorjs.org
Other
2.67k stars 532 forks source link

dynamic x-auth value in header. #695

Open manoj-mass opened 5 years ago

manoj-mass commented 5 years ago

Hi @tilgovi ,

In annotator.storage.http I am using a dynamic header value which changes time to time. The issue is annotatorjs is sending the initial Token only. It won't change the header value as it get updated. Is this a issue or are there any workarounds for this.

headers: {
                        'X-Authorization': window.dynamicToken,
                    }