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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:20:40+00:00 2026-06-02T20:20:40+00:00

In our site, Some pages are SSL and some are non-SSL. For Example: http://www.example.com/search/patients

  • 0

In our site, Some pages are SSL and some are non-SSL.

For Example:

http://www.example.com/search/patients
https://www.example.com/patients

Now I am searching patients on http://www.example.com/search/patients page and send server request to https://www.example.com/patients via jQuery $.ajax function and dataType=json. I am unable to get data.

Questions:

  1. Should I use jsonp when we request from http to https or https to http on same server?

  2. If I use SSL for both URLs then will it work with dataType=json only

Thanks

  • 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-02T20:20:42+00:00Added an answer on June 2, 2026 at 8:20 pm

    Due to Same Origin Policy your ajax request is allowed only if:
    domain name, application layer protocol, and (in most browsers) port
    number of the HTML document running the script are the same

    In your case the application layer protocol is different, that’s why your script fails.

    Possible solutions are:

    • JSONP, which has to be provided by the server

    • CORS, which is a more ‘elegant’ and clean solution, but is not yet fully supported by IE (IE7 doesn’t support it, IE8 has some limitations)

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

Sidebar

Related Questions

Our site is receiving requests which try to access non existing pages. Usually it
got a weird question for you based on some weird happenings on our site.
I have a site where some users will be registered by our staff, and
I am building out some reporting stuff for our website (a decent sized site
Our site has multiple wizards where various data is collected over several pages, and
For our site, Im using a lot of jQuery - right now Im looking
We are in the process of importing some old pages from our legacy website
We were working on a mobile version of our site. Some programmers put up
our drupal site has some user specific content. When we enable page caching the
For some reason the urls in one section of our site were changed from

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.