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

  • SEARCH
  • Home
  • 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 8044533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:15:39+00:00 2026-06-05T05:15:39+00:00

I have a subdomain website (mobile) that is trying to call a aspx page

  • 0

I have a subdomain website (mobile) that is trying to call a aspx page on my main domain website. There are no local files involved here (Domain to Domain). I am using jquery mobile and trying to make a ajax call. By looking around the web I know there will be a slim chance that someone will A.Understands my problem and B. Can answer it.

Once again. Making ajax call from jquery mobile site to domain site, getting error
Origin is not allowed by Access-Control-Allow-Origin.

I added this and it did not work

$(document).bind("mobileinit", function () {
        $.mobile.allowCrossDomainPages = true;
        $.support.cors = true;
    })
  • 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-05T05:15:41+00:00Added an answer on June 5, 2026 at 5:15 am

    Your server needs to send this HTTP header:

    Access-Control-Allow-Origin *
    

    Using PHP (on the server) you would use this code:

    header('Access-Control-Allow-Origin: http://www.yourdomain.com');
    

    or to allow requests from any client domain using PHP:

    header('Access-Control-Allow-Origin: *');
    

    You can configure Apache to send this header for you in a configuration file:

    http://harthur.wordpress.com/2009/10/15/configure-apache-to-accept-cross-site-xmlhttprequests-on-ubuntu/

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

Sidebar

Related Questions

I have a small website sitting in a sub-domain of my main site. I'm
I have domain site.com and there is subdomain sub.site.com Once you open sub.site.com you
I have a main website running on AppEngine. It's on a subdomain like main.example.com
We have a website for a product (let's call it ourproduct) that's on ourproduct.com.
I have a website where each user registers as subdomain (username.domain.com). I'm tracking all
I have a website that auto-redirects, using JavaScript, to a sub-domain when it detects
I have a domain set up: www.domain.com, that runs a codeigniter website. I want
I have a website hosted on lighttpd, accessible at the www subdomain. I also
Say I have a subdomain xxx.yyy.com running Apache. The files are stored in /home/someone/public_html/xxx
I have a domain foo.com on server bar. I have a subdomain api.foo.com which

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.