vocascan / vocascan-server

Server for Vocascan
https://vocascan.com
Apache License 2.0
26 stars 5 forks source link

fix cors if cors includes * #73

Closed luwol03 closed 2 years ago

luwol03 commented 2 years ago
Status Type Env Vars Change
:white_check_mark: Ready Hotfix No

Description

This fixes cors, if the user use a *. The cors libary only work with *, if its not an array. So first I check if its not a boolean and if it includes a star, if thats the case, use a star without an array. Otherwise use the array/boolean value.

Motivation and Context

Screenshots / GIFs (if appropriate):

Checklist

Resolves