No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Redirect to external link in browser

    Help
    2
    5
    402
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nomad last edited by

      Hi! I have a task: there is a redirect from the application to the site page. How to make this page open in the application? I tried to use <iframe> It opens the pages for youtube and others, but it’s exactly my link is forbidden. Error: Refused to display ‘https://someurl’ in a frame because it set ‘X-Frame-Options’ to ‘deny’. Are there any other ways besides <iframe>?

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by Hawkeye64

        https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

        If you specify deny, not only will attempts to load the page in a frame fail 
        when loaded from other sites, attempts to do so will fail when loaded from 
        the same site. On the other hand, if you specify sameorigin, you can still 
        use the page in a frame as long as the site including it in a frame is the
         same as the one serving the page.
        
        N 1 Reply Last reply Reply Quote 0
        • N
          nomad last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • N
            nomad @Hawkeye64 last edited by

            @Hawkeye64 thanks for the answer) it needs to be configured on the backend. I don`t have access to the backend. maybe you know other ways?

            1 Reply Last reply Reply Quote 0
            • Hawkeye64
              Hawkeye64 last edited by

              @nomad There is no other way. Browsers respect the wishes of sites. However, okay, there is one way. You build a node backend, that fetches (because it’s your code, you don’t have to respect anything) and feed it to your front-end.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post