Skip to content

Commit

Permalink
Fix https check
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-boehm committed Nov 8, 2023
1 parent f3773a7 commit f24bb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/app/simulations/simulations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class SimulationsService {
const endpoint = this.applicationConfigService.getEndpointFor(
'/api/simulations?users=' + numberOfUsers + '&courseId=' + courseId + '&examId=' + examId + '&server=' + server,
);
if (!SERVER_API_URL.startsWith('https://')) {
if (!window.location.protocol.startsWith('https:')) {
// Only send credentials over HTTPS
account = undefined;
}
Expand Down

0 comments on commit f24bb84

Please sign in to comment.