You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by bd...@apache.org on 2026/05/31 18:39:12 UTC
(directory-scimple) 01/01: Remove unused ApiOriginFilter
This is an automated email from the ASF dual-hosted git repository.
bdemers pushed a commit to branch remove-unused-api-origin-filter
in repository https://gitbox.apache.org/repos/asf/directory-scimple.git
commit d2f3429aad409ec672f5be8a3c581d4ddeb2d5fe
Author: Brian Demers <bd...@apache.org>
AuthorDate: Sun May 31 14:38:35 2026 -0400
Remove unused ApiOriginFilter
Dead code: the CORS filter carries no @Provider and is referenced nowhere; leftover from the project's initial import to Apache.
---
.../scim/server/filter/ApiOriginFilter.java | 38 ----------------------
1 file changed, 38 deletions(-)
diff --git a/scim-server/src/main/java/org/apache/directory/scim/server/filter/ApiOriginFilter.java b/scim-server/src/main/java/org/apache/directory/scim/server/filter/ApiOriginFilter.java
deleted file mode 100644
index 0c170a24..00000000
--- a/scim-server/src/main/java/org/apache/directory/scim/server/filter/ApiOriginFilter.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements. See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership. The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License. You may obtain a copy of the License at
-
-* http://www.apache.org/licenses/LICENSE-2.0
-
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied. See the License for the
-* specific language governing permissions and limitations
-* under the License.
-*/
-
-package org.apache.directory.scim.server.filter;
-
-import java.io.IOException;
-
-import jakarta.ws.rs.container.ContainerRequestContext;
-import jakarta.ws.rs.container.ContainerResponseContext;
-import jakarta.ws.rs.container.ContainerResponseFilter;
-import jakarta.ws.rs.core.MultivaluedMap;
-
-public class ApiOriginFilter implements ContainerResponseFilter {
-
- @Override
- public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
- MultivaluedMap<String, Object> headers = responseContext.getHeaders();
- headers.add("Access-Control-Allow-Origin", "*");
- headers.add("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
- headers.add("Access-Control-Allow-Headers", "Content-Type, Authorization");
- }
-}