Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Fetch Javascript

fetch('/payment', {
    method: 'POST', 
    headers: {
        'Content-Type': 'application/json',
        'Accept': 'application/json',
        'url': '/payment',
        "X-CSRF-Token": document.querySelector('input[name=_token]').value
    },
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Fetch #Javascript
ADD COMMENT
Topic
Name
6+9 =