Frontegg loads fonts by default from Google when the login box loads. If you'd like to proxy these requests through your own backend, you can use `fontCdnUrl` to the Frontegg `themeOptions`.
Frontegg Embedded Login prerequisites:
- `@frontegg/nextjs@6.7.6`
- `@frontegg/react@5.0.14`
- `@frontegg/angular@5.8.1`
- `@frontegg/vue@2.0.13`
- `@frontegg/js@6.80.0`
const themeOptions = {
externalAssets: {
fontCdnUrl: "your-proxy-url",
},
loginBox: {
typographyStyleOptions: {
fontFamily: "Cursive"
}
}
};
Frontegg Hosted Login prerequisites:
In order to serve fonts from your own proxy URL on hosted login, please follow the instructions in this guide and setup a server that Frontegg hosted pages will be able to access and serve the fonts from.
app.get("/overrides", cors(corsOptions), (req, res) =>
res.send({
themeV2: {
loginBox: {
typographyStyleOptions: {
fontFamily: "Cursive" // or any font family of choice
},
externalAssets: {
fontCdnUrl: 'your-proxy-url'
}
}
}
}