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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:39:36+00:00 2026-05-18T20:39:36+00:00

Google is about to release its PC and OS. You’ll be able to code

  • 0

Google is about to release its PC and OS. You’ll be able to code for that machine only with browser technologies – i.e. JavaScript. So I expect some tools to be available already.

On the web JavaScript has a same origin policy to prevent XSS attacks. In extensions it is free to wander around.

So the question is: can I write a page or (if you prefer) an online app that is authorized (after user confirmation, of course) to do all the cross site requests it feels needed? I know this is possible when you write an extension, but I’d prefer something that doesn’t stick so much in the user’s browser. [Edit] I know there are solutions if you have control of both sites involved. But I’m asking if it is possible to access, for instance, google or yahoo APIs: sites I’ve no control over.

For instance say I want to write a frontend for some API (REST, JSON, XML: not a script tag, cross-site compatible API): I need to host it somewhere (a different host than the API provider) but I need to make unrestricted calls to that domain and read responses too. I understand the security risks, I’m talking about asking the user’s permission first (as you do when you install extensions).

  • 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-18T20:39:37+00:00Added an answer on May 18, 2026 at 8:39 pm

    If you need to have the browser and server agree to access data you can look into CORS:
    http://www.w3.org/TR/cors
    https://developer.mozilla.org/en/HTTP_access_control

    Basically you add a header on the server on all requests that tells the browser that the server is aware of cross origin and is OK with it.

    It is surprisingly simple. There are a few gotchas. One being the so-called preflight dialog the browser and server engage in when there is a non-standard header. Some frameworks insert such a header which triggers this dialog. What it means in practise is the need for the server to add the cors headers to all responses including the OPTIONS header!

    If you as you later mention, you want to request privileges from the user to bypass security restrictions, you need to look into signed scripts: http://www.mozilla.org/projects/security/components/signed-scripts.html

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

Sidebar

Related Questions

Google is about to release its PC and OS. You'll be able to code
One thing that really bothers me about Google Code is that fact that it
I was seeing about the release of Google Chrome OS, then I have some
I already make some search on the forum and on google about initializing and
I am doing some development about google reader on android platform. Using google reader
Boy, there's a lot of hype about the release of Google's Fusion Tables .
I'm about to release a few apps for the Google Play store and the
I'm about ready to release 6 apps on the Google Play market, and a
I am about to release my app to Google Play. My project has multiple
I have searched on google about how to get started with the dependency property

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.