-
Notifications
You must be signed in to change notification settings - Fork 174
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
removal of luigiCookie #3942
Comments
Hello @norama, Best regards, |
Hello @JohannesDoberer , thanks for your quick reaction and for this disable option. Also I am not sure how to use the Best Regards, |
Hello @norama, Regarding the authData: <luigi-container
data-test-id="iframe-based-container-test"
viewURL="./microfrontend.html">
</luigi-container> Set context via js const luigiContainer = document.querySelector('[data-test-id="iframe-based-container-test"]');
luigiContainer.context = {"content":"some content", "authData": {"accessToken":"xyz"}};
//and/or updating the context
updateContextButton.addEventListener('click', () => {
luigiContainer.updateContext({ "authData": {"accessToken":"xyz"} });
}); In your microfrontend you can read the authData like: LuigiClient.addInitListener(ctx=>{
console.log('init ctx', ctx)
});
LuigiClient.addContextUpdateListener(ctx=>{
console.log('updated ctx', ctx)
});
//or
LuigiClient.getContext() You can find more code examples here Cheers, Johannes |
Hello @JohannesDoberer, thank you very much, I did not know how to use the context, but this pseudo code makes it clear, However, the context is visible in the browser dev console among the Thank you for your help. Nóra |
Description
I am getting chrome warnings:
and the affected cookie is your
luigiCookie
.What are your plans with this issue?
Is it possible to remove this cookie and thus get rid of these problems?
Reasons
I am not sure how it would function in future chrome versions,
possibly chrome will show an accept cookie popup to users (?),
but it would be better to avoid this complication.
The text was updated successfully, but these errors were encountered: