Facing CORS Error

[Fri May 24 12:37:31 2024] New connection on REST API: x.x.128.77
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_handler:1378] Got a HTTP OPTIONS request on /...
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_handler:1379]  ... Just parsing headers for now...
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] Host: test-recorder.yepme.com
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Request-ID: eb5cb4abcff52f23daccb349b5444c31
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Real-IP: 14.14.15.12
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Forwarded-For: 14.14.15.12
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Forwarded-Host: test-recorder.yepme.com
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Forwarded-Port: 443
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Forwarded-Proto: https
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Forwarded-Scheme: https
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] X-Scheme: https
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] cache-control: max-age=0
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] accept: */*
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] access-control-request-method: POST
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] access-control-request-headers: content-type
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] origin: https://test.yepme.com
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] sec-fetch-mode: cors
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] sec-fetch-site: same-site
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] sec-fetch-dest: empty
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] referer: https://test.yepme.com/
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] accept-encoding: gzip, deflate, br, zstd
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] accept-language: en-US,en;q=0.9
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_headers:2022] priority: u=1, i
[Fri May 24 12:37:31 2024] [ERR] [transports/janus_http.c:janus_http_handler:1454] Invalid url /
[Fri May 24 12:37:31 2024] [transports/janus_http.c:janus_http_request_completed:2048] Request completed, freeing data

I have already Enabled CORS as allow_origin:* in http.jcfg.

But still I m getting this error.

That error has nothing to do with CORS. It’s someone/something sending a request for the / url which the internal webserver in Janus doesn’t handle. Please refer to the documentation for how to use the API properly.