관리자 - 활성 환경(Active Profile)에 따른 타이틀 변경

This commit is contained in:
이대환
2026-04-01 16:19:22 +09:00
parent 6c55f53647
commit 66df63b232
85 changed files with 101 additions and 87 deletions

View File

@@ -2,7 +2,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<spring:eval expression="@environment.getProperty('spring.profiles.active')" var="profiles"/>
<% response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
@@ -16,14 +16,20 @@
<%-- CK editor 적용 시 width 설정 --%>
<%--파비콘, 메타, 타이틀--%>
<title>일반 관리자</title>
<title>
<c:choose>
<c:when test="${profiles eq 'local'}">(로컬) </c:when>
<c:when test="${profiles eq 'dev'}">(개발) </c:when>
<c:otherwise></c:otherwise>
</c:choose>
일반 관리자
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="\assets\favicon\gcone.ico">
<meta name="robots" content="noindex,nofollow">
<%--mixed Contents 대응--%>
<spring:eval expression="@environment.getProperty('spring.profiles.active')" var="profiles"/>
<c:if test="${profiles eq 'stage'}">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
</c:if>