Raw
1 /**
2 * Shared bits of the public, cross-origin JSON endpoints under `app/api`.
3 * These are read-only and unauthenticated, so any origin may call them.
4 */
5 export const PUBLIC_API_CORS_HEADERS = {
6 "Access-Control-Allow-Origin": "*",
7 "Access-Control-Allow-Methods": "GET, OPTIONS",
8 "Access-Control-Allow-Headers": "Content-Type",
9 }
10
11 export const PUBLIC_API_CACHE_CONTROL = "public, max-age=3600, must-revalidate"