diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 970a88f..6e978e3 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -20,6 +20,13 @@
android:supportsRtl="true"
android:theme="@style/Theme.AsgardiusS3Manager"
tools:targetApi="31">
+
+
+
+ android:launchMode="singleTask"
+ android:resizeableActivity="true"
+ android:supportsPictureInPicture="true" />
corsRules = bucketcors.getRules();
+ for (CORSRule rule: corsRules) {
+ System.out.println("allowOrigins: "+rule.getAllowedOrigins());
+ System.out.println("AllowedMethod: "+rule.getAllowedMethods());
+ if (rule.getAllowedOrigins().toString().equals("[*]")) {
+ allorigins = true;
+ } else if (rule.getAllowedOrigins().toString().equals("["+pdfendpoint+"]")) {
+ pdfcompatible = true;
+ }
+ }
+ }
+
+ runOnUiThread(new Runnable() {
+
+ @Override
+ public void run() {
+ if (allorigins) {
+ origins.setText(getResources().getString(R.string.cors_all));
+ } else if (pdfcompatible) {
+ origins.setText(getResources().getString(R.string.cors_pdf));
+ } else {
+ origins.setText(getResources().getString(R.string.cors_none));
+ }
+ }
+ });
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ runOnUiThread(new Runnable() {
+
+ @Override
+ public void run() {
+ Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show();
+ }
+ });
+ //Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show();
+ finish();
+ }
+ }
+ });
+ getCors.start();
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_cors_config.xml b/app/src/main/res/layout/activity_cors_config.xml
new file mode 100644
index 0000000..63fb2fc
--- /dev/null
+++ b/app/src/main/res/layout/activity_cors_config.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/bucket_menu.xml b/app/src/main/res/menu/bucket_menu.xml
index 047028e..e2f82c8 100644
--- a/app/src/main/res/menu/bucket_menu.xml
+++ b/app/src/main/res/menu/bucket_menu.xml
@@ -13,6 +13,10 @@
android:id="@+id/info"
android:title="@string/object_info" />
+
+
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index e53eeb1..422d372 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -95,4 +95,9 @@
Reproduccion de video
este valor no puede ser cero
Acceso de estilo de ruta
+ Política CORS
+ Orígenes permitidos
+ Permitidos todos los orígenes
+ Permitido el uso de endpoint PDF
+ Uso de endpoint PDF permitido
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 2a11aaa..504c8ff 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -98,4 +98,9 @@
Video Playback
This value cannot be zero
Path style access
+ CORS policy
+ Allowed origins
+ All origins allowed
+ PDF Endpoint allowed
+ PDF Endpoint not allowed
\ No newline at end of file