我无法共享我自己的NDA问题应用程序,但是我发现了这个完全相同的问题
https://github.com/SyncfusionExamples/blazor-localization/tree/master/.NET6%20Blazor%20Server%20App/Localization-with-动态培养
blazor-localization
此应用程序以 culturesWitcherSwitcherwitcher 组件显示页面在5种语言之间选择。
选择一种语言时,我可以看到Page+下拉词都用所选语言值刷新。
现在,您将此应用程序的URL嵌入了新应用程序的页面中,而无效。
cookie机制不再保存或/和加载值。
这在Net+Core+3.1和5.0中完美工作,但在Net+Core+6中不再工作。
安全性或CORS还是???
预先感谢您的任何提示
-
I can't share my own app for nda issue but I found this one which shows exactly the same issue
https://github.com/SyncfusionExamples/blazor-localization/tree/master/.NET6%20Blazor%20Server%20App/Localization-with-dynamic-culture
Blazor-Localization
This app displays a page with a CultureSwitcher component to select between 5 languages.
When you select a language, I can see both the page+dropdown refreshed with the selected language value.
Now, you embed the Url of this app inside a new app's page inside an iFrame and nothing works anymore.
The cookie mechanism doesn't save or/and load the value anymore.
This was working perfectly in net+core+3.1 and 5.0 but no more in net+core+6.
Is something change in security or cors or ????
Thanks in advance for any tips
-Vince
发布评论
评论(1)
这听起来像是Samesite Cookie的问题。它甚至被记录为在这里:
您是否尝试过设置Cookie选项?
This sounds like an issue with SameSite cookies. It's even documented here:
Have you tried setting the cookie options?