More debugging
This commit is contained in:
2
client/middleware/custom-domain.global.js
vendored
2
client/middleware/custom-domain.global.js
vendored
@@ -23,6 +23,8 @@ export default defineNuxtRouteMiddleware((to, from) => {
|
|||||||
|
|
||||||
if (!customDomainUsed()) return
|
if (!customDomainUsed()) return
|
||||||
|
|
||||||
|
console.info('loadedConfig',useRuntimeConfig())
|
||||||
|
console.log(useRequestHeaders(),customDomainHeaderName)
|
||||||
const customDomainHeaderValue = useRequestHeaders()[customDomainHeaderName]
|
const customDomainHeaderValue = useRequestHeaders()[customDomainHeaderName]
|
||||||
if (!customDomainHeaderValue || customDomainHeaderValue !== getDomain(getHost())) {
|
if (!customDomainHeaderValue || customDomainHeaderValue !== getDomain(getHost())) {
|
||||||
// If custom domain header doesn't match, redirect
|
// If custom domain header doesn't match, redirect
|
||||||
|
|||||||
Reference in New Issue
Block a user