Files
cloudron-box/dashboard/proxyauth.html
Girish Ramakrishnan e87d2e1218 Fix issue where footer/name can break templates
stringify the template variables at render time

JSON.stringify - will escape out quotes
<%- renders as-is without any more escaping
2025-11-23 11:17:59 +01:00

23 lines
420 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title><%= name %> Login</title>
<script>
window.cloudron = <%- JSON.stringify({
name: name,
iconUrl: iconUrl,
loginUrl: loginUrl,
language: language,
apiOrigin: apiOrigin
}) %>;
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/proxyauth.js"></script>
</body>
</html>