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

Cookies not sent during request #80

Closed
Aiso786 opened this issue Apr 19, 2017 · 1 comment
Closed

Cookies not sent during request #80

Aiso786 opened this issue Apr 19, 2017 · 1 comment

Comments

@Aiso786
Copy link

Aiso786 commented Apr 19, 2017

Hello,

When a request is made by formio (to get the values of a "select" component for example), the "Cookies" HTTP header is not sent.

This is causing issues because we need an information from the cookies to authenticate the request.

Can you help us please ?

I have to tried to play the "Plugin Hooks" but i haven't managed to get it working. Here is what our code looks like:

let DelayPlugin = {
            priority: 1,
            request: function (requestArgs) {
                console.log(requestArgs);
            }
        }

Formio.registerPlugin(DelayPlugin, 'delay');
@Aiso786
Copy link
Author

Aiso786 commented Dec 11, 2017

I managed to get it working

const plugin = {
priority: 0,
requestOptions: function (value) {
value.credentials = 'include';
return value;
}
};

FormioCore.registerPlugin(plugin, 'enableCredentials');

I close the issue.

@Aiso786 Aiso786 closed this as completed Dec 11, 2017
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

1 participant