@mars-stack/cli 8.0.13 → 8.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5420,8 +5420,10 @@ function comingSoonPage() {
5420
5420
 
5421
5421
  import { useState } from 'react';
5422
5422
  import { appConfig } from '@/config/app.config';
5423
+ import { useCSRFContext } from '@/lib/csrf-context';
5423
5424
 
5424
5425
  export function ComingSoonPage() {
5426
+ const { getCSRFHeaders } = useCSRFContext();
5425
5427
  const [email, setEmail] = useState('');
5426
5428
  const [submitted, setSubmitted] = useState(false);
5427
5429
  const [loading, setLoading] = useState(false);
@@ -5435,7 +5437,7 @@ export function ComingSoonPage() {
5435
5437
  try {
5436
5438
  const res = await fetch('/api/waitlist', {
5437
5439
  method: 'POST',
5438
- headers: { 'Content-Type': 'application/json' },
5440
+ headers: { 'Content-Type': 'application/json', ...getCSRFHeaders() },
5439
5441
  body: JSON.stringify({ email }),
5440
5442
  });
5441
5443