cors icon indicating copy to clipboard operation
cors copied to clipboard

A question about the type of the origin option value.

Open annahxxl opened this issue 2 years ago • 3 comments

If you put an array in the origin option as shown below, the access-control-allow-origin value is not created in the header. If it's a string type, it works fine. Is there a way to pass an array?

스크린샷 2022-07-05 09 29 17

annahxxl avatar Jul 05 '22 00:07 annahxxl

Yes, this is expected. The special asterisk does not make sense to include in the array, and is only supported as a single value. We'll get the docs updated around this for you 👍

dougwilson avatar Jul 05 '22 02:07 dougwilson

@dougwilson Thank you :)

annahxxl avatar Jul 05 '22 03:07 annahxxl

looking into this issue

dhananjaysa92 avatar Oct 28 '22 14:10 dhananjaysa92