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