You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ca...@apache.org on 2025/02/27 03:25:50 UTC

(kylin) branch kylin5 updated: KYLIN-6056 fix the preflight request got a 401 Unauthorized error due to the OPTIONS request lacks authentication header

This is an automated email from the ASF dual-hosted git repository.

caolu pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/kylin5 by this push:
     new 7a4355734d KYLIN-6056 fix the preflight request got a 401 Unauthorized error due to the OPTIONS request lacks authentication header
7a4355734d is described below

commit 7a4355734db4652376912647d2760239996cb6ba
Author: huangsheng <hu...@163.com>
AuthorDate: Fri Aug 2 10:59:08 2024 +0800

    KYLIN-6056 fix the preflight request got a 401 Unauthorized error due to the OPTIONS request lacks authentication header
---
 src/server/src/main/resources/kylinSecurity.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server/src/main/resources/kylinSecurity.xml b/src/server/src/main/resources/kylinSecurity.xml
index bb887ffc78..6cd2085f14 100644
--- a/src/server/src/main/resources/kylinSecurity.xml
+++ b/src/server/src/main/resources/kylinSecurity.xml
@@ -242,7 +242,7 @@
             <scr:csrf disabled="true"/>
             <scr:custom-filter before="BASIC_AUTH_FILTER" ref="fillEmptyAuthorizationFilter"/>
             <scr:http-basic entry-point-ref="nUnauthorisedEntryPoint"/>
-
+            <scr:intercept-url pattern="/api/**" method="OPTIONS" access="permitAll"/>
             <scr:intercept-url pattern="/api/models/recommendations" access="permitAll"/>
             <scr:intercept-url pattern="/api/jobs/replace_metadata" access="permitAll"/>
             <scr:intercept-url pattern="/api/streaming_jobs/spark" access="permitAll"/>