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

Plnkrs not working on site #1129

Closed
lslocum opened this issue Dec 1, 2017 · 9 comments
Closed

Plnkrs not working on site #1129

lslocum opened this issue Dec 1, 2017 · 9 comments

Comments

@lslocum
Copy link

lslocum commented Dec 1, 2017

I'm submitting a...Support Request

  • Regression report
  • Documentation issue or request

Current behavior

When opening a plnkr from your site the plnkr never loads and console errors are thrown.

Expected behavior

The plnkr loads

Minimal reproduction of the problem with instructions

  1. Open a plnkr link from your documentation page.
  2. Observe the endless spinner.
  3. Open the console and see the following errors:

xhr construction TypeError: window.XDomainRequest is not a constructor at Object.t.ajax (jstag?nc=15184186-Freestar_RON:12) at n.B.load (jstag?nc=15184186-Freestar_RON:12) at Object.<anonymous> (jstag?nc=15184186-Freestar_RON:12) at Object.n [as tryCatch] (jstag?nc=15184186-Freestar_RON:12) at jstag?nc=15184186-Freestar_RON:12 at new Promise (<anonymous>) at jstag?nc=15184186-Freestar_RON:12 at Array.map (<anonymous>) at Object.t._map (jstag?nc=15184186-Freestar_RON:12) at i (jstag?nc=15184186-Freestar_RON:12)

Failed to load https://www.telerik.com/kendo-angular-ui/npm/node_modules/@progress/kendo-angular-grid/dist/cdn/js/kendo-angular-grid.js: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://run.plnkr.co' is therefore not allowed access.

Error: Error: XHR error loading https://www.telerik.com/kendo-angular-ui/npm/node_modules/@progress/kendo-angular-grid/dist/cdn/js/kendo-angular-grid.js at ZoneDelegate.invokeTask (https://unpkg.com/zone.js@0.8.12/dist/zone.js:424:31) at Zone.runTask (https://unpkg.com/zone.js@0.8.12/dist/zone.js:191:47) at XMLHttpRequest.ZoneTask.invoke (https://unpkg.com/zone.js@0.8.12/dist/zone.js:486:38) Error loading https://www.telerik.com/kendo-angular-ui/npm/node_modules/@progress/kendo-angular-grid/dist/cdn/js/kendo-angular-grid.js as "@progress/kendo-angular-grid" from http://run.plnkr.co/IBg0heqrlTPeDYzg/app/ng.module.ts

What is the motivation or use case for changing the behavior?

Trying to play with our examples before I implement them in my code.

Environment

Package versions: n/a


Browser:

Only tested with

  • Chrome (desktop) version XX
  • Edge version XX

System: n/a

  • TypeScript version: XX
  • Node version: XX
  • Platform:
@dtopalov
Copy link
Contributor

dtopalov commented Dec 1, 2017

Duplicate of #1120

We are currently working on fixing this, but meanwhile clearing the cache is the way to go.

@tsvetomir
Copy link
Member

The problem should go away by itself as the browser cache expires. Let us know if this is not the case.

@lslocum
Copy link
Author

lslocum commented Dec 4, 2017 via email

@tsvetomir
Copy link
Member

@lslocum thanks for getting back. I think we finally figured it out - we needed a "Vary: Origin" header to make sure the browser caches the correct origin.

You might still need to clear the cache once more or wait for it to expire (4 hours). But after that, it should be fine.

@tsvetomir
Copy link
Member

Okay, that was a bit rushed - the issue is still reproducible in Chrome.

@tsvetomir
Copy link
Member

Fixed at last. Thank you for the patience.

@lslocum
Copy link
Author

lslocum commented Dec 5, 2017

It is working for me now. Thanks!

@aliawilkinson
Copy link

I am experiencing this exact error now in Chrome.

@tsvetomir
Copy link
Member

@aliawilkinson can you share the plunkr URL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants