Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Conversation

@shanshanzhu
Copy link

[Do not land]

This is to show the example code for question listed in this thread
https://developer.mypurecloud.com/forum/t/authorization-code-grant-doesnt-support-option-request-method/5620/2

With the example code, We can see the 2nd GET request is redirected as an OPTION http method
and fail

Screen Shot 2019-07-26 at 5 18 26 PM

res.send(user);
res.send(user);
// clear cache for forcing the 2nd ajax to call;
sessionMap = {};
Copy link
Author

@shanshanzhu shanshanzhu Jul 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this to clear cache so that 2nd ajax is also forcing a redirect call to purecloud

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants