fix: resolve CORS issues with Netlify Identity and add security headers for custom domain

This commit is contained in:
Buğra
2025-07-10 04:04:23 +03:00
parent 65198cf783
commit 9457aa1ede
5 changed files with 43 additions and 16 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ const { language, textDirection } = I18N;
<Analytics />
<!-- Netlify Identity for Decap CMS -->
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script is:inline src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<!-- Comment the line below to disable View Transitions -->
<ClientRouter fallback="swap" />
@@ -49,7 +49,7 @@ const { language, textDirection } = I18N;
<BasicScripts />
<!-- Netlify Identity initialization -->
<script>
<script is:inline>
if (window.netlifyIdentity) {
window.netlifyIdentity.on('init', (user) => {
// Check if we're on a page that needs authentication handling
+2 -2
View File
@@ -8,7 +8,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kimlik Doğrulama - ARC</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script is:inline src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
@@ -78,7 +78,7 @@
</div>
</div>
<script>
<script is:inline>
// Handle Netlify Identity authentication
if (window.netlifyIdentity) {
// Handle the confirmation/recovery tokens