Laixer / FunderMapsIncidentPortal

Customer incident report portal
0 stars 0 forks source link

Form does not submit on iOS devices #25

Closed DonZandbergen closed 4 years ago

DonZandbergen commented 4 years ago

Form doesn't submit (page 8) in Safari. Tested on latest IOS en MacOS in latest Safari version.

pnobbe commented 4 years ago

@yorickdewid and me were unable to find a solution, but we narrowed it down to a Safari-specific issue. It does not seem to like POST requests using the fetch API. Specifically it breaks in Questions.vue's handleNavigate function:

const response = fetch(`https://staging.fundermaps.com/api/incident-portal/submit`, {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json'
        },
        body: {}
      })
yorickdewid commented 4 years ago

@Solinx Will take a look