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

getConfigForTokenFetch is not defined - destination.js #3

Open
vinaydevalla-greensill opened this issue Feb 23, 2021 · 1 comment
Open

Comments

@vinaydevalla-greensill
Copy link

When using 'csrfprotection:true' for connecting csrf protected APIs, it is failing with "getConfigForTokenFetch is not defined" ( Line 240 in destination.js)

I see a similar function in jcailan's repo

Can you please let me know how to proceed further on this issue?

Sample:

const service = await cdsapi.connect.to(""SCPDestination");
return await service.run({
url: "/Products",
method: "post",
headers: {
'content-type': 'application/json'
},
data: product,
csrfProtection: true
})

@gregorwolf
Copy link
Collaborator

Please fork the project, create the correction on a new branch and send a pull request.

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

2 participants