softwaremill / softwaremill/elasticmq

Support for "Access-Control-Allow-Origin"

Open
#41 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2.9k
Forks
203
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Right now trying to use the browser (JS) SDK leads to:

XMLHttpRequest cannot load http://localhost:9324/.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8000' is therefore not allowed access.
The response had HTTP status code 400.

i.e. the browser is preventing CORS.

See: https://coderwall.com/p/0izzta/cors-directive-for-spray
and: http://jkinkead.blogspot.com/2014/11/handling-cors-headers-with-spray-routing.html

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.

Research direction

Start by locating the HTTP routing entry point that serves the SQS-compatible interface, then review the linked Spray CORS references. Confirm the browser JS SDK request from http://localhost:8000 to http://localhost:9324 receives an Access-Control-Allow-Origin header and no longer fails due to CORS.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.