attempt
This commit is contained in:
		
							
								
								
									
										10
									
								
								functions/src/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								functions/src/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
import * as functions from 'firebase-functions';
 | 
			
		||||
import * as cor from 'cors';
 | 
			
		||||
 | 
			
		||||
const cors = cor({origin: true});
 | 
			
		||||
 | 
			
		||||
exports.helloWorld = functions.https.onRequest((req, res) => {
 | 
			
		||||
    return cors(req, res, () => {
 | 
			
		||||
        res.status(200).send('Hello World!');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user