Project

General

Profile

action #166310

Updated by tinita 6 months ago

## Motivation 

 We want to get rid of jquery, and one part we could get rid of is our ajax calls. 

 We are currently using jquery for that, e.g. `$.ajax({ ... })`. 

 Instead we could use the fetch API: 
 https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch 

 ## Acceptance Criteria 

 * **AC1:** We don't use jquery any more for ajax calls 
 * **AC2:** Ajax calls still work in all browsers we support 

 ## Suggestions 
 * For the `X-CSRF-TOKEN` header see https://github.com/os-autoinst/openQA/blob/master/assets/javascripts/openqa.js#L22

Back