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

DeliveryClient requests fail when secure mode is enabled #45

Closed
davidlaughlintl opened this issue Sep 16, 2021 · 2 comments
Closed

DeliveryClient requests fail when secure mode is enabled #45

davidlaughlintl opened this issue Sep 16, 2021 · 2 comments
Labels

Comments

@davidlaughlintl
Copy link

davidlaughlintl commented Sep 16, 2021

Hi! We really like this module; thanks for creating it!

Found a problem when we switched our nuxt.config.js usePreviewMode to false, set enableSecureMode to true, and switched Kentico's secure access option on for the production delivery api. Our requests to the Delivery Api were failing with the usual message when the Authorization header isn't correct.

In module.js, there's a couple properties that don't match the current Kentico js SDK docs:
securedApiKey => secureApiKey
enableSecureMode => useSecureMode
useSecureMode is a property of the globalQueryConfig object in the Kentico docs.

Making those changes in our local module.js and making matching changes in nuxt.config.js resolved the problem for us.

Would you like me to open a PR with these changes (and the nuxt.config.js section of the Readme docs)?

Thanks again for your work on this!
David

@Domitnator
Copy link
Owner

Hi David,

Thanks for opening this issue! I will fix this issue asap (probably on wednesday)!

Kind Regards,

Alfred

@Domitnator
Copy link
Owner

🎉 This issue has been resolved in version 6.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

2 participants