Skip to content

Feature request: allow CORS on local dev server #803

@wholladay

Description

@wholladay
  1. OS? Mac OSX (El Capitan?)
  2. Versions.
    angular-cli: 1.0.0-beta.1
    node: 5.10.0
    os: darwin x64
  3. Repro steps. I'm running a Spring-Boot server as my RESTful API and to serve up the initial html page. The html page then gets the angular app from a CDN. The Angular cli server acts like the CDN while we are developing. Both Spring and Angular cli are running on my local machine (with different ports). When the call to System.import() is made, I get a CORS error from the browser.
  4. The log given by the failure.
    XMLHttpRequest cannot load http://localhost:4200/system-config.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
    zone.js:323 Error: Error: XHR error loading http://localhost:4200/system-config.js(…)
  5. Mention any other details that might be useful.
    I'm sure there must be a way to do this, but I've tried everything I can think of.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureIssue that requests a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions