Skip to content

Commit

Permalink
add proxy conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepideh Alassi committed Jan 31, 2024
1 parent 6bf20a5 commit 3d091af
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion angular.json
Expand Up @@ -72,7 +72,8 @@
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"port": 6400,
"browserTarget": "beol:build"
"browserTarget": "beol:build",
"proxyConfig": "./proxy.conf.json"
},
"configurations": {
"production": {
Expand Down
7 changes: 7 additions & 0 deletions proxy.conf.json
@@ -0,0 +1,7 @@
{
"/repositories": {
"target": "https://graphdb.organa.myds.me",
"secure": true,
"changeOrigin": true
}
}
2 changes: 1 addition & 1 deletion src/app/services/beol.service.ts
Expand Up @@ -857,7 +857,7 @@ export class BeolService {
const body = new HttpParams()
.set('query', query)

return this._http.post<DataGraphDB>(url, body, {'headers': headers, withCredentials: true});
return this._http.post<DataGraphDB>(url, body, {'headers': headers, withCredentials: true });
}

/**
Expand Down

0 comments on commit 3d091af

Please sign in to comment.