question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Previously working project w/o changes now fails to build due to CORS errors

See original GitHub issue

https://stackblitz.com/edit/angularjs-material-ngupgradelite?file=package.json

This project used to work, but has stopped working in the last couple of months. The CORS issues appear to be on the Stackblitz side.

Duplicate definition of module 'vs/basic-languages/typescript/typescript'
s.defineModule @ loader.js:1176
o @ loader.js:1613
(anonymous) @ typescript.js:7
Access to fetch at 'https://t.staticblitz.com/v6/@angular/upgrade@7.0.2' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
angularjs-material-ngupgradelite?file=package.json:1 Access to fetch at 'https://t.staticblitz.com/v6/@angular/upgrade@7.0.2' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Access to fetch at 'https://t.staticblitz.com/v6/@types/angular@1.6.51' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
angularjs-material-ngupgradelite?file=package.json:1 Access to fetch at 'https://t.staticblitz.com/v6/@types/angular@1.6.51' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Access to fetch at 'https://data.jsdelivr.com/v1/package/npm/@types/angular@1.6.51' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
angularjs-material-ngupgradelite?file=package.json:1 Access to fetch at 'https://data.jsdelivr.com/v1/package/npm/@types/angular@1.6.51' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Access to fetch at 'https://data.jsdelivr.com/v1/package/npm/@angular/upgrade@7.0.2' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
angularjs-material-ngupgradelite?file=package.json:1 Access to fetch at 'https://data.jsdelivr.com/v1/package/npm/@angular/upgrade@7.0.2' from origin 'https://stackblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
engineworker.js:1 Uncaught (in promise) TypeError: Failed to fetch
Promise.then (async)
e.default @ engineworker-28a42a8f47380fbf2140a.js:1
(anonymous) @ engineworker-28a42a8f47380fbf2140a.js:1
dispatch @ engineworker-28a42a8f47380fbf2140a.js:1
(anonymous) @ engineworker-28a42a8f47380fbf2140a.js:1
t.onmessage @ engineworker-28a42a8f47380fbf2140a.js:1

Browser: Chrome Version 70.0.3538.77 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
adamdurencommented, Jan 10, 2019

This is happening for me on my blitz for the package @angular/pwa.

1reaction
bob-leecommented, Nov 3, 2018

All demos are back, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

CORS errors and how to solve them - Topcoder
Still facing a CORS error? ... Open a network tab in your console. ... In the response header look for the Access-Control-Allow-Origin header....
Read more >
3 Ways to Fix the CORS Error — and How the Access-Control ...
Fix one: install the Allow-Control-Allow-Origin plugin. The quickest fix you can make is to install the moesif CORS extension .
Read more >
A Guide to Solving Those Mystifying CORS Issues
First, you check the code, looking for some typos or other mistakes —but everything seems to be fine. You change the URL to...
Read more >
Fixing Common Problems with CORS and JavaScript
Tutorial: This post walks through troubleshooting and fixing common problems associated with calling REST APIs from JavaScript.
Read more >
Fix CORS Error Permanently Regardless of Your Web App
By the end of this section, you'll know how to get rid of the ugly CORS error permanently no matter what type of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found