Skip to content

CORS errors on SPFX-projects loaded from localhost:4321 on manifests.js across multiple projects with no code changes #10487

@KobeLiesenborgs

Description

@KobeLiesenborgs

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • SPFx version: tested on 1.13.1 and 1.16.1
  • Node.js version: 14.15.5 and 16.18.0 respectively

Describe the bug / error

Without any code changes since last succesfull try using "gulp serve" now throws the following errors in the network tab of the browser after fully completing up to and including the reload step:

Image

As a result the workbench can't make the webpart available. I tested this on multiple projects, across multiple tenants and have the same issue repeatedly.

Attempted resolutions: reboot system, clear both system and browser cache, renew the certificate under "gulp trust-dev-cert", manually navigating to "https://localhost:4321/temp/manifests.js" then reloading the page.

Steps to reproduce

  1. Run "gulp serve"
  2. Navigate to the newly opened tab based on your initialpage
  3. receive the following pop-up (apologies for the dutch tenant settings)
Image

Expected behavior

The webpart should become available in the workbench webpart selector

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions