Skip to content
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

Plunkr url in new issue template not working #8046

Closed
basvdijk opened this issue Sep 11, 2016 · 7 comments
Closed

Plunkr url in new issue template not working #8046

basvdijk opened this issue Sep 11, 2016 · 7 comments

Comments

@basvdijk
Copy link

When you want to submit a new issue on Github a template is shown. The Plunkr sections shows urls for Plunkrs to use:

Plunker that shows an example of your issue

For Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview

For Ionic 2 issues - http://plnkr.co/edit/me3Uk0GKWVRhZWU0usad?p=preview

However when you run http://plnkr.co/edit/me3Uk0GKWVRhZWU0usad?p=preview it gives a lot of Access-Control-Allow-Origin errors:

XMLHttpRequest cannot load https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://run.plnkr.co' is therefore not allowed access. zone.min.js:1 Unhandled Promise rejection: XHR error loading https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js Error loading https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js as "@angular/core" from http://run.plnkr.co/QtomGzIhDkvovKEX/app.ts ; Zone: <root> ; Task: Promise.then ; Value: Error: XHR error loading https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js(…) Error: XHR error loading https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js at o (https://code.angularjs.org/tools/system.js:4:12694) at XMLHttpRequest.I.s.onreadystatechange (https://code.angularjs.org/tools/system.js:4:13219) at XMLHttpRequest.t [as _onreadystatechange] (https://cdn.rawgit.com/angular/zone.js/master/dist/zone.min.js:1:625) at e.invokeTask (https://cdn.rawgit.com/angular/zone.js/master/dist/zone.min.js:1:16565) at n.runTask (https://cdn.rawgit.com/angular/zone.js/master/dist/zone.min.js:1:13925) at XMLHttpRequest.invoke (https://cdn.rawgit.com/angular/zone.js/master/dist/zone.min.js:1:17678)o @ zone.min.js:1 zone.min.js:1 Error: Uncaught (in promise): Error: XHR error loading https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js(…)o @ zone.min.js:1 run.plnkr.co/:1 XMLHttpRequest cannot load https://npmcdn.com/@angular/common@2.0.0-rc.1/index.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://run.plnkr.co' is therefore not allowed access. run.plnkr.co/:1 XMLHttpRequest cannot load https://npmcdn.com/@angular/http@2.0.0-rc.1/index.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://run.plnkr.co' is therefore not allowed access. run.plnkr.co/:1 XMLHttpRequest cannot load https://npmcdn.com/@angular/platform-browser-dynamic@2.0.0-rc.1/index.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://run.plnkr.co' is therefore not allowed access. run.plnkr.co/:1 XMLHttpRequest cannot load https://npmcdn.com/@angular/platform-browser@2.0.0-rc.1/index.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://run.plnkr.co' is therefore not allowed access. run.plnkr.co/:1 XMLHttpRequest cannot load https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://run.plnkr.co' is therefore not allowed access.

@rcjsuen
Copy link

rcjsuen commented Sep 12, 2016

Yup, this is really annoying.

@stefanaerts
Copy link

stefanaerts commented Sep 12, 2016

I think angular needs to use JSONP in a some places instead of JSON.
http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource

@stefanaerts
Copy link

i found the solution:
use unpkg.com instead of npmcdn.

@basvdijk
Copy link
Author

Thanks I replaced as suggested with unpkg.com The working template: http://plnkr.co/edit/H03WIlZpiiUBYbnj64x7?p=preview

@stefanaerts
Copy link

your welcome

@jgw96
Copy link
Contributor

jgw96 commented Sep 13, 2016

Hello all! Thanks for using Ionic! This seems to have been an issue with npmcdn that seems to have resolved itself as the original plunkers are now working. Thanks!

@jgw96 jgw96 closed this as completed Sep 13, 2016
@basvdijk
Copy link
Author

Glad it is resolved! 👍

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants