This page reads the true browser domain and sends it via X-Front-Door header to your backend.
โจ The fetch targets https://api.brainymart.shop/ping (or a diagnostic endpoint).
You can replace the URL with your real endpoint later.
const frontDoorDomain = window.location.hostname; // "donnas-designs.keepsake-creations.shop"
fetch('https://api.brainymart.shop/merchant/config', {
method: 'GET', // or POST
headers: {
'Content-Type': 'application/json',
'X-Front-Door': frontDoorDomain
}
})