Skip to content

Commit

Permalink
fix(openapi): add Access-Control-Allow-Origin
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Feb 11, 2024
1 parent 77fdde8 commit bdbdd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/openapi/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ const options = {

export const GET: RequestHandler = async () => {
const openapiSpecification = swaggerJsdoc(options);
return Response.json(openapiSpecification);
return Response.json(openapiSpecification, { headers: { 'Access-Control-Allow-Origin': '*' } });
};

0 comments on commit bdbdd8b

Please sign in to comment.