Skip to content
Snippets Groups Projects
Commit ea5522d9 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

TMSS-175: Fix requests from frontend

parent f4cec336
Branches
Tags
1 merge request!160Resolve TMSS-175
......@@ -5,7 +5,6 @@ import 'bootstrap/dist/js/bootstrap.js';
// Procedures
var headers = new Headers();
headers.append('Authorization', 'Basic ' + btoa('test:test'));
headers.append('Content-Type', 'application/json');
var api_url = '/api/'
......
......@@ -6,7 +6,6 @@ import 'bootstrap/dist/js/bootstrap.js';
// Procedures
var headers = new Headers();
headers.append('Authorization', 'Basic ' + btoa('test:test'));
headers.append('Content-Type', 'application/json');
var api_url = '/api/'
......
......@@ -13,14 +13,11 @@ import Form from 'react-jsonschema-form-bs4'; // todo: use main line "react-json
const additionalMetaSchemas = require("ajv/lib/refs/json-schema-draft-06.json");
// todo: The BasicAuth should only be used for testing, remove once we serve from same webserver as api
// todo: add a check that we have an active session with the API, redirect offer login if not
var headers = new Headers();
headers.append('Authorization', 'Basic ' + btoa('test:test'));
headers.append('Content-Type', 'application/json');
var api_url = 'http://localhost:8008/api/';
//var api_url = '/api/' // todo: use this again, once we serve this from same webserver as api
var api_url = '/api/';
// Procedures // todo: revise and put these somewhere so they can be shared by entire frontend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment