Urgent.News

What's breaking now, across thousands of outlets.

Tech

The Case of the Blank SharePoint Page (and the Guest Who Couldn't See It)

SPFx web part and application customizer not loading for guest or external users, and the Public CDN fix TL;DR: Guests can't read your SPFx bundles from the app catalog, so the page renders blank. Enable the Public CDN with the */CLIENTSIDEASSETS origin (or grant the guest read on the app catalog), wait until it goes active, bump the version and redeploy the .sppkg , then retest as the guest in…

The story revolves around a SharePoint page that appears blank to guests, specifically those using Gmail. This issue occurs because the SPFx bundles, which include web parts and application customizers, cannot be loaded from the app catalog for external users. The SPFx solution includes both a web part and an application customizer for the page's header and footer.

The problem lies with the "CannotCreatePersonalSite: You do not have access to create this personal site" error message, which is a red herring as it happens to every guest on every page, not just those experiencing the blank page issue.

The real culprit is the Refused to execute script from URL because its MIME type (text/html) is not executable, and strict MIME type checking is enabled. This error explains why the browser is trying to access the web part's JavaScript and getting an "Access Denied" page instead. This issue arises since the .sppkg file contains its JavaScript bundles in the ClientSideAssets library, which is normally accessible to internal users but not to guests.

The solution involves enabling the Public CDN with the */CLIENTSIDEASSETS origin. Once enabled, the SPFx bundles can be served from the Public CDN, allowing guests to view the SharePoint page correctly. The steps to enable the Public CDN include connecting to the SharePoint service, checking the current state of the Public CDN, enabling it if it's not already active, adding the */CLIENTSIDEASSETS origin, waiting for the configuration to be pending, and then redeploying the .sppkg file.

Finally, bumping the version and redeploying the solution ensures that the asset URLs are updated, preventing the previous issue from reoccurring. Testing with a guest in an InPrivate window and disabling the cache confirms that the fix worked.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

🚀 Building Spring by Example V2: Completing Module 07 - Spring Batch

When I started learning Spring, I noticed something about many of the tutorials I found. They often showed how to use a feature, but not always why it worked or how the different pieces fitted…

  • Module 07 - Spring Batch completed, covering jobs, steps, readers, processors, writers
  • Introduced concepts like job parameters, chunk-oriented processing, and tasklet processing
  • Emphasized restartability, skip/retry policies, and batch testing techniques

Cloud Bill Out of Control: Building a Reliable Budget Alert with OpenCost and Prometheus

You get the email on the 3rd of the month: last month's cloud invoice is 40% above forecast. You open the billing console, and it tells you exactly one useful thing — the account spent too much.

  • OpenCost provides near real-time cloud cost estimates for Kubernetes clusters
  • Exposes metrics like CPU, memory, volume consumption, and hourly costs per namespace
  • Enables per-namespace budget alerts with custom pricing for improved accuracy

How to find 1688 suppliers and compare wholesale prices (without reading Chinese)

1688.com is the wholesale marketplace that Chinese shops and resellers buy from. Many of the factories you find on Alibaba.com or AliExpress also sell there, often for less, because 1688 is built for…

  • 1688.com is a Chinese wholesale marketplace for factories and resellers.
  • The article offers a guide to find suppliers and compare prices without Chinese skills.
  • Steps include using translation tools and price comparison websites.

More from Sunday 8 November →