Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom token in storage header #640

Open
gspinaci opened this issue Sep 10, 2016 · 2 comments
Open

Custom token in storage header #640

gspinaci opened this issue Sep 10, 2016 · 2 comments

Comments

@gspinaci
Copy link

Hi there, I have to implement my own backend service to store annotations into a html document.
Using the store plugin i can send POST request, directly to the correct API, but there is a problem:
I have also a middleware that blocks every requests without "x-access-token" header.

Is there a simple way to encapsulate this header using storage plugin?

@tsaltena
Copy link

I've solved this (in my Laravel framework) by including the following:
app.include(annotator.storage.http,{ headers: { 'X-CSRF-TOKEN':'{{csrf_token()}}' } });

@Poornima1110
Copy link

hey , can you please tell me that will it save the commented string after reloading the page . please provide me the detail it would be the great help .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants