This forum is in read-only mode. The new forum is live at and registrations are open!

how to use fetch on open bullet

  • how to i use fetch on open bullet
    await fetch("http:/localhost/login?loginEntryPoint=LOGIN_PAGE&returnUrl=", {
    "credentials": "include",
    "headers": {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0",
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8",
    "Accept-Language": "en-US,en;q=0.5",
    "Content-Type": "application/x-www-form-urlencoded",
    "Upgrade-Insecure-Requests": "1",
    "Pragma": "no-cache",
    "Cache-Control": "no-cache"
    "referrer": "http://localhost",
    "body": "context=&credential=asdfasdfadf&password=asdfasdf&returnUrlForMaritz=&submit=Log+In",
    "method": "POST",
    "mode": "cors"

  • Admin

    What? That's a normal post request

  • normal post is context=&credential=asdfasdfadf&password=asdfasdf&returnUrlForMaritz=&submit=Log+In

    but after button click common.js always create another hidden file like x-asdrts

    so if use fetch that will be allowed

  • can i use fetch command on javascript open bullet
    ex :
    async function postData(url = '', data = {}) {
    // Default options are marked with *
    const response = await fetch(url, {
    method: 'POST', // *GET, POST, PUT, DELETE, etc.
    mode: 'cors', // no-cors, *cors, same-origin
    cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
    credentials: 'same-origin', // include, *same-origin, omit
    headers: {
    'Content-Type': 'application/json'
    // 'Content-Type': 'application/x-www-form-urlencoded',
    redirect: 'follow', // manual, *follow, error
    referrerPolicy: 'no-referrer', // no-referrer, *client
    body: JSON.stringify(data) // body data type must match "Content-Type" header
    return await response.json(); // parses JSON response into native JavaScript objects

    postData('', { answer: 42 })
    .then((data) => {
    console.log(data); // JSON data parsed by response.json() call

Log in to reply