Skip to content

Commit

Permalink
Remove COOP/COEP headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Jan 28, 2025
1 parent e2ab682 commit d0657c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
28 changes: 0 additions & 28 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@
"value": "public, max-age=3600, s-maxage=7200"
}
]
},
{
"source": "**/*",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "credentialless"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
}
]
},
Expand All @@ -61,21 +48,6 @@
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "credentialless"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
}
]
}
],
Expand Down
8 changes: 1 addition & 7 deletions pub_stats/lib/service/firebase_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/foundation.dart';
import 'package:get_it/get_it.dart';
import 'package:logger/logger.dart';
import 'package:platform_plus/platform_plus.dart';
import 'package:pub_stats/firebase_options.dart';
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_app_check/firebase_app_check.dart';
Expand All @@ -16,14 +15,9 @@ class FirebaseService {
FirebaseService._();

static Future<FirebaseService> create() async {
final authDomainOverride = switch (PlatformPlus.platform.webRenderer) {
WebRenderer.wasm => 'proxy.pubstats.dev',
_ => null,
};

await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform
.copyWith(authDomain: authDomainOverride),
.copyWith(authDomain: 'proxy.pubstats.dev'),
);

// Initialize services
Expand Down

0 comments on commit d0657c5

Please sign in to comment.