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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:16:32+00:00 2026-05-26T05:16:32+00:00

The Problem: With <meta name=apple-mobile-web-app-capable content=yes /> set, all of my jsonp requests are

  • 0

The Problem:
With <meta name="apple-mobile-web-app-capable" content="yes" /> set, all of my jsonp requests are getting denied. I read that by setting content=”yes”, you cannot change the page. But I was unaware you couldnt request external resources. And this app has to be full screen. Is there way around using this tag to set the iPad to full screen mode on an html5 app?

Right now my requests are just being sent to another subdomain and they are all getting denied? Anyone have an idea on how to get around this? Allow jsonp and force fullscreen mode?

  • 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-26T05:16:32+00:00Added an answer on May 26, 2026 at 5:16 am

    So the solution to this was tricky.

    Using JSONP you bypass the need to worry about cross-domain issues. However, When you set <meta name="apple-mobile-web-app-capable" content="yes" /> you will NOT be able to send cross domain requests without specifying Access-Control-Allow-Origin in your headers.

    So here is the solution:

    Note: In both of these requests I am specifying &jsoncallback=?

    DOESN’T WORK:

    function jsonpRequest(req){
        $.getJSON(req,
          function(data) {
            // JSONP will run getJson() above;
        });
    }
    

    DOES WORK:

    function jsonpRequest(req){
            $.ajax({
              url: req,
              dataType: 'json',
             beforeSend: setHeader,
              //data: data
              //success: callback
            });
            /*
            $.getJSON(req,
                  function(data) {
                    // JSONP will run getJson() above;
                });*/
    
        }
        function setHeader(xhr) {
    
         xhr.setRequestHeader('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 have a problem with running jquery: <!DOCTYPE html> <html> <head> <meta http-equiv=Content-Type content=text/html;
I am trying to write this : %meta{ :name => keywords, :content => #{@page_city},
I need to update the META-INF.MF file of war The problem is My war
I'm having a problem getting Facebook to recognize my open graph tags. In looking
i got a problem with getting ManyToMany field values in template, here is the
I got problem with some special characters. I have defined the meta tag as
For a mock web service I wrote a little Django app, that serves as
There's this problem that has been bugging me all day now, and I hoped
Problem overview: When using Eclipse Ganymede with the Web Tools Platform the project gets
so I have this problem in running my Spring WS app which implements JPA

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.