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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:22:19+00:00 2026-06-07T00:22:19+00:00

Im doing a simple ajax request like:` $.ajax({ type: ‘POST’, url: ‘http://’ + serverIP

  • 0

Im doing a simple ajax request like:`

$.ajax({
type: 'POST',
url: 'http://' + serverIP + '/saveJSON.php',
crossDomain: true,
data: 'helloooooooooo',
dataType: 'text',
success: function(responseData, textStatus, jqXHR) {
    var value = responseData.someKey;
     console.log(responseData);
    console.log(textStatus);
},
error: function (responseData, textStatus, errorThrown) {
    alert('POST failed.' + responseData);
    console.log(responseData);
    console.log(textStatus);
}
});`

And when running this in IOS Safari i get the error …

“XML HttpRequest cannot load …… Orgin … is not allow by Access Control Allow Orgin

… Is to replace long URL’s

I know I chrome I can by pass this by loading chrome with a -disable-web-security or other flags.

How can I get around this in iOS ? Security is not an issue as the devices will be locked down and only allow communication between certain IP address’s.

Is there any other method of retrieving information from a server php script in JavaScript? That will be allowed?

Also any links to good websites for AJAX communication with PHP would be helpful.

Just to add, All my pages the client uses/sees are HTML (.html) and the server side is (.php)

Also when following THIS link for sorting this issue i added the header to my IIS 6 for my htmls are hosted and the ipad still doenst allow this.

Thanks guys

  • 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-07T00:22:21+00:00Added an answer on June 7, 2026 at 12:22 am

    You can do this by adding Access-Control-Allow-Origin header.

    In PHP it can be doing for example by adding new header in your PHP file:

    header('Access-Control-Allow-Origin: *');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing a simple $.ajax request: $.ajax({ type: POST, url: /Run/ + param1
After I make an ajax request by doing something simple like $(element).load(url, callback); there
I'm just getting into Dojo and wanted to try a simple AJAX Post like
I'm doing a pretty simple thing here, making a POST request to Django from
I'm just doing a simple graph using Open Flash Chart http://teethgrinder.co.uk/open-flash-chart/ which shows the
I'd like to write myself a simple script that uses AJAX to load the
I'm doing a jQuery Ajax call to a PHP script that returns this string
Here is a simple snipped to do an Ajax request var req = new
I have a simple ajax call: $.ajax({url: my_url_here, dataType: 'text', success: function(data, textStatus) {
Building a PHP script that responds to an Ajax request is as easy as:

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.