Skip to content

Conversation

@AlbertSabate
Copy link

@AlbertSabate AlbertSabate commented Nov 6, 2024

Use case:

cors({
      origin: (request, set) => {
        return['a.com', 'b.com'];
      },
    }),

Let me know your feedback and I can write some docs, which is still pending todo.

Alber Tenez added 6 commits November 6, 2024 16:04
@AlbertSabate AlbertSabate changed the title Adding support for async Origin function Adding support for string | string[] Origin function Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant