fix: resolve CORS issues with Netlify Identity and add security headers for custom domain
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user