Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Tech
  3. How do I get the domain and connect to the account via iFrame on my website?

How do I get the domain and connect to the account via iFrame on my website?

Scheduled Pinned Locked Moved Tech
7 Posts 3 Posters 60 Views
  • 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.
  • S This user is from outside of this forum
    S This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    Hi!

    I'm trying to embed the site on my site, and indeed it works properly, I confirmed the embedding in >Settings>Advanced>iFrame Headers.

    But there are two problems that I couldn't solve:

      1. I'm trying to get the link of the current page now in iFrame, but unfortunately it returns a 403 rejected.
      1. The same thing - 403 - also happens when I try to log in to my account or create a new account, through iFrame.

    Have you tried this and managed to get it? I'd be happy if you could explain how you did it.

    Thank you very much!

    S 1 Reply Last reply
    0
    • S [email protected]

      Hi!

      I'm trying to embed the site on my site, and indeed it works properly, I confirmed the embedding in >Settings>Advanced>iFrame Headers.

      But there are two problems that I couldn't solve:

        1. I'm trying to get the link of the current page now in iFrame, but unfortunately it returns a 403 rejected.
        1. The same thing - 403 - also happens when I try to log in to my account or create a new account, through iFrame.

      Have you tried this and managed to get it? I'd be happy if you could explain how you did it.

      Thank you very much!

      S This user is from outside of this forum
      S This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      @baris Can you help me?
      Thank you very much!

      1 Reply Last reply
      0
      • baris@community.nodebb.orgB This user is from outside of this forum
        baris@community.nodebb.orgB This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        @silverMan I would if I could 😆 Is your site and nodebb on different domains? If POST requests are failing check if its a csrf issue.

        1 Reply Last reply
        0
        • א-ש@community.nodebb.orgא This user is from outside of this forum
          א-ש@community.nodebb.orgא This user is from outside of this forum
          א-ש@community.nodebb.org
          wrote on last edited by
          #4

          @baris It is indeed two different domains.
          How do I configure CSRF to work?
          Because that’s the error in the log.

          1 Reply Last reply
          0
          • baris@community.nodebb.orgB This user is from outside of this forum
            baris@community.nodebb.orgB This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            You would need to make a request to yournodebb.com/api/config to get a csrf_token and then use that to make requests.

            1 Reply Last reply
            0
            • א-ש@community.nodebb.orgא This user is from outside of this forum
              א-ש@community.nodebb.orgא This user is from outside of this forum
              א-ש@community.nodebb.org
              wrote on last edited by
              #6

              @baris Where can I find documentation on this?
              I need to know what to configure on the site where I want to embed the forum.

              1 Reply Last reply
              0
              • baris@community.nodebb.orgB This user is from outside of this forum
                baris@community.nodebb.orgB This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                I don't think there is any documentation for it, if you want you can look at the client side code we have to make requests using a csrf_token, or our tests in the nodebb tests folder.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups