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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:12:52+00:00 2026-05-26T09:12:52+00:00

I am writing a REST service that is to be accessed by web applications,

  • 0

I am writing a REST service that is to be accessed by web applications, desktop clients, mobile clients etc. via a REST interface. The idea is to store objects like notes, calendar events etc. in a common hierarchy and to provide HTTP methods for creating, updating and deleting documents, so this should be the ideal scope for a REST interface.

My plan is to have a REST server somewhere and web applications other servers using the data, so I need to make cross-domain request which are under special restrictions for security reasons (see e.g. this article). I also want to do some real-time updating web stuff.

Now I have been doing extensive research, learning what CORS is and trying it out (with tornado and jQuery.ajax), but by now, I’m getting the suspicion the setup I’m aiming is simply coming to soon. I only tried with Firefox (both 3.6 and 9), but I’m already having problems:

  • HTTP authentication does not to work with jQuery.ajax() (even if withCredentials is set)
  • some browsers do not support CORS at all (says Wikipedia)
  • at least one FF plugin (RequestPolicy) makes CORS not work at all

I understand that CORS/AJAX is a possible solution, but there seem to exist too many restrictions for a practical use. What do you people who did this kind of thing before think: is this something I should just do and hope these problems will be solved by someone sometime in the future? Or is just too soon for the cross-domain REST/AJAX approach? What alternative would you choose for the above plans? As I am starting a new project, I would like to do it clean, without JSONP, proxies or other work-arounds, but if there’s no way around, I’d do that anyway.

Thanks for any answers!

  • 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-26T09:12:53+00:00Added an answer on May 26, 2026 at 9:12 am

    There is nothing stopping you providing responses in standard JSON (e.g. for instances where CORS is available in the browser), and in JSONP in the cases it isn’t. It won’t affect anything but your output.

    I would not say CORS is viable by itself as IE < 8 does not support it. I would also say that there is nothing wrong with JSONP; it is a technology utilized by major players (Facebook API, Twitter API, Flickr API, Google’s various API’s).

    In short, what you said is correct; CORS is not adopted widely enough at this time to be used.

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

Sidebar

Related Questions

I'm writing some code on a mobile device that uses a REST service to
I'm writing a WCF REST Service that has a mobile client. The mobile client
I'm writing a service (say, service.com) that provides a REST API to external apps
I'm writing a REST based web service, and I'm trying to figure out the
I'm writing some code that calls a web service, reads back the response and
I am writing a Java Rest Web Service and need the caller's IP Address.
I'm writing a Python module that wraps out a certain web service API. It's
We currently have a SOAP based web service that our in house applications use
I am writing a REST API for a service that will accept user contributed
I am writing an application that is consuming an in-house WCF-based REST service and

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.