current position:Home>Vue about embedded iframe page?

Vue about embedded iframe page?

2022-08-06 18:18:07segmentfault

My vue encapsulates an iframe component. It is no problem to copy the address of the page that needs to be embedded and open it in the browser. However, if the page is embedded in an iframe, it will be displayed on the login page, and cross-domain is also set.
Normal URL display:

Embed it on the iframe page to display the login interface



Other Answer 1:
  • First confirm, under what conditions the page will display the login interface, generally the login state is invalid, and the login state is generally stored in cookie/localstorage...
  • Then, check why the login status is invalid, common reasons: cross-domain/timeout...

copyright notice
author[segmentfault],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/218/202208021450322701.html

Random recommended