Skip to content

Commit

Permalink
Use SaaS url if self hosted API is still api.flagsmith.com
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Nov 19, 2024
1 parent 67a4a42 commit d74d78d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ export default {
},
},
getFlagsmithSDKUrl: () =>
Utils.isSaas() ? Project.flagsmithClientAPI : Project.api,
Utils.isSaas() || Project.api.includes('api.flagsmith.com')

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
api.flagsmith.com
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
? Project.flagsmithClientAPI
: Project.api,
getUpgradeUrl: (feature?: string) => {
return Utils.isSaas()
? '/organisation-settings?tab=billing'
Expand Down

0 comments on commit d74d78d

Please sign in to comment.