Skip to main content

getBettingAPIBaseURL

Should return the Base URL to be used in the Bet module to fetch event bets.

Overview

The browser implements several security measures, and one of them is CORS policy. This blocks the SDK to fetch from actual domains if origin is not verified. This method is specially helpful if you want to proxy the request locally using a bundler (such as webpack) when developing local or the actual API endpoint when your App is deployed.

Method Signature

getBettingAPIBaseURL(): string;

Parameters

This method does not take any parameters.

Return Value

The Base URL to fetch the event Bets from.