Skip to content

Commit 2df5d3f

Browse files
Merge pull request #1524 from rocket-admin/fix-interceptor
fix token interceptor for https
2 parents a749507 + a975aa2 commit 2df5d3f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

frontend/src/app/services/token.interceptor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export class TokenInterceptor implements HttpInterceptor {
3434
if (url.startsWith('http://')) {
3535
return url;
3636
}
37+
if (url.startsWith('https://')) {
38+
return url;
39+
}
3740
return `${baseURL}${url}`;
3841
}
3942

frontend/src/environments/environment.dev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export const environment = {
22
production: false,
33
saas: false,
4-
apiRoot: 'https://rocketadmin-dev.tail9f8b2.ts.net/api',
5-
saasURL: 'https://rocketadmin-dev.tail9f8b2.ts.net',
4+
apiRoot: 'https://app.rocketadmin.com/api',
5+
saasURL: 'https://app.rocketadmin.com',
66
saasHostnames: ['localhost', '127.0.0.1'],
77
stagingHost: '',
88
version: '0.0.0',

0 commit comments

Comments
 (0)