Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6576483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:31:03+00:00 2026-05-25T15:31:03+00:00

Basically my application is in a social network where in my application’s page they

  • 0

Basically my application is in a social network where in my application’s page they create an iframe with their (not mine) URL to “renderer” which then takes (don’t ask how) my code (html, js) and places in the body tag of this iframe.

Since I need to be able to run the iframe’s JavaScript functions I decided not to create an another iframe with my application URL, but with ajax calls just load my application’s content in the body of their iframe. This way I could be able to run their JavaScript functions. If I would create my iframe within their iframe then I couldn’t run them because of the cross domain stuff, right?

However when I perform ajax calls with jQuery to my application they are performed from the social network (since the iframe is their, just my body code) and thus no session cookies which are saved on my application domain are available for the ajax calls from this iframe.

What I think is I need to create an iframe (dooh) within the social network’s iframe, but how to overcome the cross domain issues to access the JavaScript functions in the parent iframe?

P.S. Sorry for the long explanation. Wanted to make it clear for everyone.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:31:04+00:00Added an answer on May 25, 2026 at 3:31 pm

    There is no way to read a cookie from another domain.

    Either the AJAX is failing because you are using XHR and you are getting blocked by the Same Origin Policy. Or, you are using JSONP, and the cookie is not being set.

    If you are using XHR, switch to JSONP.

    Using JSONP you won’t be able to set cookies. JSONP just loads a script by setting the src of a script tag, and cookies can’t be set in this way (nevermind that they can’t be set from another domain).

    You’ll have to manage state manually by passing the session id with each JSONP request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPhone application which basically is getting information from an API (in
I have a simple application which basically consists of a line of buttons and
I'm writing a web application which basically searches your Twitter timeline for links. I
I am trying to design a new application which basically aims at providing biometric
Basically multiple instances of our application will be launched but they need to have
I'm writing an application (basically its yet another iBooks clone) which consumes a lot
I have a list of settings for my application (basically setting which disabled access
I am drawing a custom view in my application which basically takes arguments(XML) as
I have a form on my Java application which basically is to provide the
I need to write cross platform application (basically CRUD). Is usage of Java Swing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.