@scalar/fastify-api-reference 1.25.40 → 1.25.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -19812,7 +19812,7 @@ const fastifyApiReference = fp(
19812
19812
  const spec = getLoadedSpecIfAvailable();
19813
19813
  const filename = await getSpecFilenameSlug(spec);
19814
19814
  const json = JSON.parse(await spec.toJson());
19815
- return reply.header("Content-Type", `application/json`).header("Content-Disposition", `filename=${filename}.json`).header("Access-Control-Allow-Origin", "*").header("Access-Control-Allow-Methods", "*").send(json);
19815
+ return reply.header("Content-Type", `application/json`).header("Content-Disposition", `filename=${filename}.json`).send(json);
19816
19816
  }
19817
19817
  });
19818
19818
  const openApiSpecUrlYaml = `${getRoutePrefix(options.routePrefix)}${getOpenApiDocumentEndpoints(options.openApiDocumentEndpoints).yaml}`;