I am trying to implement CORS policy and was told to store the allowed domains in kvm. This works, but then I was told that each domain stored needs its own allowed set of methods. Key naming restrictions wont allow me to use the Origin url as a key where allowed methods would be the value. How is this usually handled?
What you can do is just give the domain name as name and methods allowed as value in a json body and store to the value part.
Eg.
Key : proxy name
Value:
{
"Domain1": "abc.com",
"Method": "GET,POST"
}