1# Cloudflare Pages response headers for static assets:
2# https://developers.cloudflare.com/pages/configuration/headers/
3#
4# Page (HTML) responses pass through functions/_middleware.js, which sets the homepage Link headers.
5# A Link rule here would replace the preconnect Link headers that Pages generates for Early Hints.
6
7# Agent discovery documents can be read by browser-based clients on any origin.
8/.well-known/*
9 Access-Control-Allow-Origin: *
10
11# API catalog (RFC 9727). A HEAD request returns the api-catalog Link header (Section 2).
12/.well-known/api-catalog
13 Content-Type: application/linkset+json; profile="https://www.rfc-editor.org/info/rfc9727"
14 Link: </.well-known/api-catalog>; rel="api-catalog"
15
16# The runtime HTTP API description, served with the media type that the API catalog and the
17# homepage Link headers advertise.
18/openapi.json
19 Content-Type: application/vnd.oai.openapi+json
20 Access-Control-Allow-Origin: *
21
1# Cloudflare Pages response headers for static assets:
2# https://developers.cloudflare.com/pages/configuration/headers/
3#
4# Page (HTML) responses pass through functions/_middleware.js, which sets the homepage Link headers.
5# A Link rule here would replace the preconnect Link headers that Pages generates for Early Hints.
6
7# Agent discovery documents can be read by browser-based clients on any origin.
8/.well-known/*
9 Access-Control-Allow-Origin: *
10
11# API catalog (RFC 9727). A HEAD request returns the api-catalog Link header (Section 2).
12/.well-known/api-catalog
13 Content-Type: application/linkset+json; profile="https://www.rfc-editor.org/info/rfc9727"
14 Link: </.well-known/api-catalog>; rel="api-catalog"
15
16# The runtime HTTP API description, served with the media type that the API catalog and the
17# homepage Link headers advertise.
18/openapi.json
19 Content-Type: application/vnd.oai.openapi+json
20 Access-Control-Allow-Origin: *
21
