I have a C# MVC web application (application A) where I want to load a web page (P1) from another application. I have got the page P1, details and content, through a REST api call. When I load the P1 page into my A1 it messes with my CSS and JS, and overrides the A1 CSS/JS with the one P1 gets from the rest call.
How to make sure P1 does not override the CSS/JS of my page A1?
I do similar approach. I basically take the page of the other app and extract the body element and just embed that. With that approach css of the included app is not loaded
here is example code how I do it: