Skip to content
Snippets Groups Projects
Commit 806f7664 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: remove wrong override method for cors allow origin header

parent a203842a
No related branches found
No related tags found
1 merge request!419fix: remove wrong override method for cors allow origin header
......@@ -9,12 +9,12 @@
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-2.0.html>.
......@@ -23,8 +23,6 @@
package ch.unige.solidify.controller;
import static ch.unige.solidify.SolidifyConstants.ACCESS_CONTROL_ALLOW_ORIGIN_HEADER;
import java.io.InputStream;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -158,10 +156,4 @@ public abstract class SolidifyController {
return new AntPathMatcher().extractPathWithinPattern(bestMatchPattern, path);
}
protected HttpHeaders getAccessControlAllowOriginForAllHeader() {
final HttpHeaders responseHeaders = new HttpHeaders();
responseHeaders.set(ACCESS_CONTROL_ALLOW_ORIGIN_HEADER, "*");
return responseHeaders;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment