-1
How to share menu between applications? We have several applications and all have the same menu, example:
Home | Beneficiary | Accredited
When new item appears we need to replicate in all applications. We try to use jquery.
<div id='idteste'></div>
$('#idteste').load(/controle/action/)
When we do this we have the problem of CORS that would have to enable in MVC Core, even enabling CORS it gets css and js from the other site changing the current site, being second problem.
There is also the option to use < iframe > but I think there must be some other way to solve this problem of sharing menu only between applications.
If the problem are new items in the menu, why don’t you store these items/menu in the database and load them when the user accesses the system?
– Aesir
The problem of this is tbm style issue for example if you need to change color or font would have to do that in all others agree ?
– Mr Anderson
I understood, I would make the menu items and the css/js to be loaded and added to the page dynamically, searching this data in an API, then you could have a pattern and customizations, but why enabling CORS and searching the menu in another application he changed the current site?
– Aesir
Yes it alters by doing with ajax, with API do not know how it would be or would
– Mr Anderson