Iframe problem

Other Information

I cannot iframe my website… I have made seperate website for account and cannot iframe it to where needed how can I resolve this issue?

You cannot put your websites here inside an iframe.

so what’s the solution

Doesn’t exist

My recommended solution is to avoid using iframes in general. They are rarely an optimal solution for problems.

Can you tell us a bit more about how exactly you’re intending to use iframes so we can help find a solution?

I want to give people access for login as Serfilms (service for internet landmarks) like people can login/signup as google in website or software.

What’s Serfilms?

Google logins don’t use iframes, so that still doesn’t tell me how it’s supposed to work.

it sounds like what you might be looking for is OAuth login with Serfilms being the auth provider?

Ok I am Finding a alternative… My idea was that iframe shows a page of login/signup created by me… User can login/signup on their software using iframe of my login/signup system…

Right. Because the security system on InfinityFree sights that ensures only browsers can access your site, this may not be possible.

I’m not quite sure how you’d build a shared login system using iframes. There are technical restrictions on how much data you can share between the parent page and the child page for security reasons, enforced by all browsers.

OAuth/OIDC would be the most elegant way to solve this, which is the same protocol that’s also used for Google logins, but that may be difficult because it also involves API interactions between websites, which is also blocked on our hosting.

One good thing to be aware of: multiple websites can talk to the same database. So you could either use that to have a single user database shared between multiple websites (which I think is how @Jri-Creator does it), or use the database connection to replace the API layer for the OAuth login flow.

Spot on!

With database sharing, I can integrate my Webmail service into various things, such as my forums.
Whenever the forum needs to send an email, it directly talks to my Webmail’s database to drop the email there in my Webmail format. It also directly talks with the Account manager when the forum is building a profile for a new user.

Random fact: You could even utilise databases from one hosting account in another account. But both hosting accounts need to have Hits going to them, or else those databases will become unavailable until you reactivate your account. So if you were hosting some sort of login service on Account A, Accounts B and C could access the login service’s database. Not sure if this information will help.

Why dont you use htmx, instead of iframe?

The htmx Solution:

Instead of loading a separate window, htmx fetches raw HTML fragments from the server and injects them directly into the current page DOM.

Because you’d run into the same issue.

The same reason that iframes don’t work also breaks AJAX requests, which means the HTMX solution also doesn’t work.

Within the same website, HTMX is legitimately a cool solution and much better than using iframes, but it’s not a solution for this particular issue.