Повар ie, связанный с межсайтовым ресурсом на http://www.google.com/, был установлен без атрибута `SameSite` - PullRequest
0 голосов
/ 06 марта 2020

Я прочитал, мне нужно добавить атрибут SameSite к повару ie, и я не уверен, как это реализовать. Ниже мой текущий код:

function getAllUsers(){

 return fetch("http://localhost:3000/users")
   .then((resp) => resp.json())

   .then(function(users) {
     users.forEach(function(user) {
       postContainer.innerHTML += renderSingleProfile(user);
     }); 
     return users ;
    });
}

function renderSingleProfile(user){
  return `
    <div id ="profile-card">
    <h2>User: ${user.name}</h2>
    <img id="profile-image" src= "http://localhost:3000${user.prof_photo}"/>
    <p>Age: ${user.age}</p>
    <p>Location: ${user.location}</p>
    <p>Job: ${user.job}</p>
    <p> Species: ${user.species}</p>
    <button class="like-btn" data-id="${user.id}">Like <3 </button> 

    <input type="text" name="comments" value="" class="input-comment">
    <button class="submit-btn" data-id="${user.id}>Submit Comment </button>
    </div> `
}
...