-
Notifications
You must be signed in to change notification settings - Fork 12k
Unable to access assets due to CORS #2872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I was able to successfully downgrade my project CLI |
Would you be willing to make a PR that enables CORS for |
As a workaround I'm using a browser extension that sets the header https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Mac OSX El Capitan
Versions.
angular-cli: 1.0.0-beta.18
node: 6.7.0
os: darwin x64
Repro steps.
[email protected]
to1.0.0-beta.18
(as well as Typescript from2.0.2
to~2.0.3
).assets
key inangular-cli.json
to array of strings.The log given by the failure.
Mention any other details that might be useful.
My use case: I am not using the generated
index.html
, but instead use Java/Spring. I run both the backend and the CLI concurrently, the CLI dev-server acting as a local CDN for development. Therefore the page is served from the backend on:8080
and the Angular app from:4200
.Related to #803 though for different reasons since the CLI now uses Webpack/webpack-dev-server. Because the CLI doesn't expose any config for webpack, users can't enable CORS themselves. This seemed to work previously without any issue. Attempts to downgrad to
beta.16
(npm i -g [email protected]
) seem to either installbeta.18
again or fail with error:The text was updated successfully, but these errors were encountered: