-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
OPTIONS is mostly used for pre-flight request. It means with request having HTTP verb other than GET/HEAD/POST (such as DELETE).
We should be able from the schema to define cors for GET/HEAD/POST similar to OPTIONS. Here's an example I have in mind:
{
get: {
'/': {
options: {
origin: 'http://mydomain.com'
}
}
}
}The options field will customize the OPTIONS method but also add a middlewae for GET/HEAD/POST.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request