๐Ÿง  BrainyMart domain & header test

This page reads the true browser domain and sends it via X-Front-Door header to your backend.

๐Ÿ“ก Current domain (window.location.hostname)

โ€” detecting โ€ฆ

โœจ The fetch targets https://api.brainymart.shop/ping (or a diagnostic endpoint).
You can replace the URL with your real endpoint later.

๐Ÿ“‹ Live log / fetch details

โšก Ready. Domain detection will appear automatically.

๐Ÿ” Example fetch snippet (exactly what this page uses)

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
  }
})