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 7816453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:52:34+00:00 2026-06-02T05:52:34+00:00

I have my iframe such as this: <iframe src=http://api.example.com/html/31 id=fa-iframe scrolling=No frameborder=0 style=height: 513px;

  • 0

I have my iframe such as this:

<iframe src="http://api.example.com/html/31" id="fa-iframe" scrolling="No" frameborder="0" style="height: 513px; width: 597px; "></iframe>

and a javascript like this:

$.get("/inc_appdl_main.php", { id=args },function(data) {});

The website is http://example.com …

I want to reach this file in my directory inc_appdl_main.php.

However, when I do the request,.. the internet doesnt allow me cause it interprets:

http://example.com
and

http://api.example.com

as two seperates domains..although both are the same sites..with a different url. api is simply a folder that the get request gets to.

I have two options to use in my get.
Either..

.get(" http://api.example.com/inc_appdl_main.php", { id=args },function(data) {});

which will give me “404”

or

 .get(" http://example.com/inc_appdl_main.php", { id=args },function(data) {});

which will give me an error that I cant post across domains

Although the site is the same site, the url is different.. and I need to get to this file..

inc_appdl_main which sits on the same root directory...is there a way?
  • 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-06-02T05:52:36+00:00Added an answer on June 2, 2026 at 5:52 am

    A couple of possible solutions:

    1. Configure your server so that it can accept the request for http://api.example.com/inc_appdl_main.php, processing it as though it were http://example.com/inc_appdl_main.php". This is probably the easiest, as you’re in control of the server.

    2. If the response from api.example.com is an HTML page, add JavaScript to it to set document.domain to example.com.

    3. Require that your users use a Cross-Origin Resource Sharing (CORS) compatible browser and reply to the CORS preflight requests and such on the server.

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

Sidebar

Related Questions

I have in my page many many iframes which build this way: <iframe style=.....>
I have something like this: <!doctype html> <html> <body> <iframe id="someFrame"></iframe> </body> </html> And
i know i can have iframe in a html page, say parent.htm, and i
I have an iframe window that displays a report. To access this iframe, I
I'm using an Iframe to have an html file work on a homepage when
I was asked to post this as a question on StackOverflow by http://twitter.com/jonathanjulian which
I have a server. Lets call it http://A.com I also have an 'Enjin' forum
I have iframe with with form elements such as input, select textarea etc. I
I have a page with an iframe, and inside this iframe are some links
For example: script.js: function functionFromScriptJS() { alert('inside functionFromScriptJS'); } iframe.html: <html> <head> <script language=Javascript

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.