Skip to content

CORS support? #108

Description

@alukach

I'm attempting to use codebase this with a Swagger UI to demonstrate auth tooling within my API. However, when Swagger UI attempts to fetch http://127.0.0.1:3000/.well-known/openid-configuration, the following error is logged within my browser:

Access to fetch at 'http://127.0.0.1:3000/.well-known/openid-configuration' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I'm not seeing any CORS headers on the response body:

HTTP/1.1 200 OK
content-length: 346
content-type: application/json
date: Sat, 22 Mar 2025 05:09:43 GMT

Am I missing anything? How are others using this application? Entirely server side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions