getAPIHeaders static method
Implementation
static Map<String, String> getAPIHeaders(
String projectId, [
String? referer,
String? origin,
]) {
return {
'x-project-id': projectId,
'x-sdk-type': CoreConstants.X_SDK_TYPE,
'x-sdk-version': CoreConstants.X_SDK_VERSION,
'user-agent': getUserAgent(),
if (referer != null) 'referer': referer,
if (origin != null) 'origin': origin,
};
}