CORS not Supported

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, node.js
Domain
api, backend

Research direction

Start by reproducing the browser RPC request against the localhost Node.js server and tracing how the remote-function server handles HTTP responses. Determine whether configurable CORS support is intended; done means browser calls succeed without the reported missing Access-Control-Allow-Origin error.

Written by the indexing model from the issue text.

Description

Hello. I'm trying to do RPC from the browser to a localhost node.js server. However, I get an error that it's inaccessible due to CORS:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:6356/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)

Is this not supported by remote-function or is there a way to configure this to work? Thank you.

Dominant language
JavaScript
Stars
100
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lindell/remote-function

All issues in lindell/remote-function

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.