fix: Fix failing product alert API for anonymous user (#25878)
Fix critical problem where public apps are redirecting to login page, because of product-alerts API not accepting anonymous users.
This commit is contained in:
parent
ef9390a573
commit
b0c9b1cbf0
|
|
@ -51,6 +51,7 @@ import static com.appsmith.server.constants.Url.APPLICATION_URL;
|
|||
import static com.appsmith.server.constants.Url.ASSET_URL;
|
||||
import static com.appsmith.server.constants.Url.CUSTOM_JS_LIB_URL;
|
||||
import static com.appsmith.server.constants.Url.PAGE_URL;
|
||||
import static com.appsmith.server.constants.Url.PRODUCT_ALERT;
|
||||
import static com.appsmith.server.constants.Url.TENANT_URL;
|
||||
import static com.appsmith.server.constants.Url.THEME_URL;
|
||||
import static com.appsmith.server.constants.Url.USAGE_PULSE_URL;
|
||||
|
|
@ -182,7 +183,8 @@ public class SecurityConfig {
|
|||
ServerWebExchangeMatchers.pathMatchers(HttpMethod.POST, ACTION_URL + "/execute"),
|
||||
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, TENANT_URL + "/current"),
|
||||
ServerWebExchangeMatchers.pathMatchers(HttpMethod.POST, USAGE_PULSE_URL),
|
||||
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, CUSTOM_JS_LIB_URL + "/*/view"))
|
||||
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, CUSTOM_JS_LIB_URL + "/*/view"),
|
||||
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, PRODUCT_ALERT + "/alert"))
|
||||
.permitAll()
|
||||
.pathMatchers("/public/**", "/oauth2/**", "/actuator/**")
|
||||
.permitAll()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user