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

  • Home
  • SEARCH
  • 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 8384689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:28:08+00:00 2026-06-09T17:28:08+00:00

I am working on a website that needs access to local resources, like RFID

  • 0

I am working on a website that needs access to local resources, like RFID reader and some other hardware. I was thinking about writing a simple web server that would return data I need.

So that web site would access this data with JavaScript, and handle it further.

I know I cannot simply access localhost with XMLHTTPRequest due to same-origin policy limitations.

So is there a simple solution for this? I don’t know would if I can access let say localhost.mysite.com if I set it locally to 127.0.0.1?
Or maybe JSONP? Or CORS?
I am not familiar with these technologies, so I am asking how would you solve this problem, or what would be the easiest way to do this.

  • 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-09T17:28:10+00:00Added an answer on June 9, 2026 at 5:28 pm

    You’re probably best off making a packaged Chrome app to do something like this. You will then be able to run it as a regular website experience, but with the right “permissions” setting in the manifest, it will be able to access any domain, including localhost.

    It would require anyone using it to “install it”, which is just a one-click operation.

    Alternatively, if you can control the localhost servers, you can have them output JSONP or the correct CORS headers. Basically, if you want to communicate between any two domains (which includes localhost) on the regular web (ie not including special web apps like Chrome’s packaged apps), they both need to provide consent for it.

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

Sidebar

Related Questions

I have been working on a website that has some images that I need
I'm working on a website that will use features of social networking (like facebook
I'm working on a website that keeps track of upcoming homework assignments. I'd like
I am working on a large website (1600+ pages) that needs upgrading to pass
I am working on a website that has access data from a database (sql
I'm working on an internet website that provides some services to internet users. So
Working on a website that has Employee and Branch entities, using a database table
I am working on a website that auto populates search result in a table
I'm working on a website that will be using Facebook Connect to authenticate users.
I am working on a website that has a menu which behaves correctly on

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.