From 03e33ff749e0923e753628e192b9c41d9967550a Mon Sep 17 00:00:00 2001 From: resaja Date: Thu, 23 Oct 2025 10:26:50 +0700 Subject: [PATCH] remove referer --- example/lib/main.dart | 1 - lib/src/map_camera.dart | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 15b30b0..8049684 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -58,7 +58,6 @@ class _MyHomePageState extends State { body: MapCameraLocation( camera: widget.camera, userAgent: 'OxinosMapCameraFlutter/1.0 (contact: support@oxinos.io)', - refererUrl: 'https://oxinos.io', packageName: 'com.oxinos.map_camera_flutter', onImageCaptured: (ImageAndLocationData data) { print('Captured image path: ${data.imagePath}'); diff --git a/lib/src/map_camera.dart b/lib/src/map_camera.dart index ca7158a..4872161 100644 --- a/lib/src/map_camera.dart +++ b/lib/src/map_camera.dart @@ -56,20 +56,18 @@ class MapCameraLocation extends StatefulWidget { final CameraDescription camera; final ImageAndLocationCallback? onImageCaptured; final String userAgent; - final String refererUrl; final String packageName; /// Constructs a MapCameraLocation widget. /// /// The [camera] parameter is required and represents the camera to be used for capturing images. /// The [onImageCaptured] parameter is an optional callback function that will be triggered when an image and location data are captured. - /// The [userAgent], [refererUrl], and [packageName] parameters are required for open street map policies https://operations.osmfoundation.org/policies/tiles. + /// The [userAgent], and [packageName] parameters are required for open street map policies https://operations.osmfoundation.org/policies/tiles. const MapCameraLocation({ super.key, required this.camera, this.onImageCaptured, required this.userAgent, - required this.refererUrl, required this.packageName, }); @@ -241,8 +239,6 @@ class _MapCameraLocationState extends State { headers: { 'User-Agent': widget.userAgent, - 'Referer': - widget.refererUrl }, ), userAgentPackageName: