Azure Static Web App returns 403 to Facebook Sharing Debugger, but curl with facebookexternalhit returns 200

John Harris 0 Reputation points
2026-04-30T09:29:22.4133333+00:00

I've created a static web app and got it ready for live.

I've added og-image and other og tags so when the app is shared it has what I've provided.

Google has indexed the page and bing and LinkedIn uses the og image when shared.

Ive been trying to use the facebook debugger to scrape the page and it keeps coming up with a 403.

When i click "See exactly what our scraper sees for your URL" i get : The document returned no data.

My robots has:

User-agent: *

Allow: /

and when i use curl and "facebookexternalhit/1.1" it returns 200

Im thinking azure is blocking the facebook crawler before my app makes any decision about it how can i fix this? Surely this must happen to other people

How can I see or control whatever layer is returning 403 to Facebook’s crawler on Azure Static Web Apps, given the app itself returns 200 for the same user agent?

Hosting: Azure Static Web Apps Framework: React/Vite

Custom domain: https://edgely.co.uk

Free/Standard plan tested: both

staticwebapp.config.json has no auth restrictions robots.txt allows all

LinkedIn Post Inspector works

Google indexing works

Direct og-image URL works

curl with facebookexternalhit returns 200

Facebook Sharing Debugger returns 403 / document returned no data

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.