mirror of
				https://github.com/stackblitz-labs/bolt.diy
				synced 2025-06-26 18:26:38 +00:00 
			
		
		
		
	fix: cors issues from preview fixed by changing embedder policies (#1056)
This commit is contained in:
		
							parent
							
								
									6aaff63ca7
								
							
						
					
					
						commit
						3a298f1586
					
				@ -24,6 +24,7 @@ if (!import.meta.env.SSR) {
 | 
				
			|||||||
    Promise.resolve()
 | 
					    Promise.resolve()
 | 
				
			||||||
      .then(() => {
 | 
					      .then(() => {
 | 
				
			||||||
        return WebContainer.boot({
 | 
					        return WebContainer.boot({
 | 
				
			||||||
 | 
					          coep: 'credentialless',
 | 
				
			||||||
          workdirName: WORK_DIR_NAME,
 | 
					          workdirName: WORK_DIR_NAME,
 | 
				
			||||||
          forwardPreviewErrors: true, // Enable error forwarding from iframes
 | 
					          forwardPreviewErrors: true, // Enable error forwarding from iframes
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user