We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
flutter run
1 parent 11d81f2 commit f64190aCopy full SHA for f64190a
packages/flutter_tools/lib/src/isolated/devfs_web.dart
@@ -1192,9 +1192,7 @@ class ReleaseAssetServer {
1192
'application/octet-stream';
1193
return shelf.Response.ok(bytes, headers: <String, String>{
1194
'Content-Type': mimeType,
1195
- 'Cross-Origin-Resource-Policy': 'cross-origin',
1196
- 'Access-Control-Allow-Origin': '*',
1197
- if (_needsCoopCoep && _fileSystem.path.extension(file.path) == '.html') ...<String, String>{
+ if (_needsCoopCoep && file.basename == 'index.html') ...<String, String>{
1198
'Cross-Origin-Opener-Policy': 'same-origin',
1199
'Cross-Origin-Embedder-Policy': 'require-corp',
1200
}
0 commit comments