Embedded HTML page security - html

I have an application that consists of jsp and HTML pages. It requires a login to access the site. However that doesn't seem to work on html pages. I can copy the link to the html page and access it without having to login which is the case for the jsp pages. Any ideas on how I can authenticate the default server pages?

Related

Is it possible to create dynamic routes in Next Js that can be embedded in external websites using iframes?

I have a Next JS app, where admin users create and manage schedules for their businesses. I want to create a robust way for users to be able to embed a public url from the next js admin app in any external website for their businesses that they might have(eg a wordpress landing page), which displays their specific schedule( A next page that can have any functionality) in their respective landing pages.
I have tried to just link any of my next routes in an external html page using
<iframe src="next app route"></iframe>
I would expect to see that page displayed within the iframe( as it would have looked if I had accessed the url in the browser, but within the constraints of the iframe), but the page doesn't display within the iframe, and I get a blank space. But the same iframe works with a simple ".html" page url that I found randomly.
This related thread suggests that CRA is more suited for this. But I don't really understand how. Especially because each user in my next app, will have a different page that needs to be embedded!

Is it possible to load an HTML page only from a specific iframe?

I'm building a web app (in PHP) that allows to assign HTML resources (HTML pages) to users. A user should only be able to access pages assigned to him. The problem is that if a user gets URLs to these pages and then i revoke his permission to that page, he will still be able to access it.
Is there some way to only allow these HTML pages to load from an iframe in my app (in my domaine for example..) ? this way i will do the needed checks in my web app, and load the page in an iframe if the user has access otherwise, no one can access it.
Is there some way to only allow these HTML pages to load from an iframe in my app (in my domaine for example..) ?
No. At least not in ways that aren't trivial to bypass.
Generate your HTML from PHP which does authn/authz instead.

ASP forms on HTML sites

I have a static HTML website. I wish to add a couple of ASP .net web forms to display data from a data source. Is it possible to just develop an asp web form in VS and place it in a folder location on my site. Then I am planning to have a link to the web form filename. Does anybody know if this is possible without say a web config and a login page etc.
The form will be stand alone and the only asp page on the site.
Thanks.
add this code in your html <% Put Your Asp Form Code Here %>

Use of HTML page in WEB application

When we are developing web application using jsp servlet or using Struts2 or Spring then we are basically using HTML or JSP page for displaying data to the user.
But we know that JSP and HTML both are different concept. Even I also used HTML page sometimes in my project but I am getting confused why we are using HTML page instead of JSP page in web application?
Can someone explain why we are using HTML page in WEB application?

How to Include ASPX page in ASP.NET User Control

Is it possible how to include ASPX page in ASP.NET User Control?
I have use ajax modal popup extender in asp.net user control.in that place update panel not accept while i am running my program. It throws the error below:
Microsoft Jscript runtime error:'Sys.Extended.UI' is nul or not a object
but when I am using the same update panel in my ASPX page it works fine.
Can any one tell me how to solve this problem?
I think you misunderstand how to use an ASP.NET User Control. User Controls typically don't include a full page HTML markup since they are used for embedding in ASP.NET pages. If you try to embed a full ASP.NET page in another full ASP.NET page without an iframe, you will have page rendering issues since the DOM parser won't know how to process the page content.
http://www.codeproject.com/Articles/1739/User-controls-in-ASP-NET