99610/how-to-enable-cors-in-cloud-functions-for-firebase
Hi Guys,
I am new to the firebase service in GCP Cloud. The problem I'm having is that I can't access the function I wrote through an AJAX request. I am getting the below error.
"No 'Access-Control-Allow-Origin'" error.
Hi@akhtar,
In your case, you need to set a cross-origin resource sharing mechanism in the cloud function, as shown below.
response.set('Access-Control-Allow-Origin', '*');
You can achieve this through the gsutil ...READ MORE
You can create a RAM disk with ...READ MORE
These are the following steps to look at the transaction history within the Google ...READ MORE
To enable Cloud CDN for an existing ...READ MORE
Google has already made a guide for ...READ MORE
Hi@akhtar, If you are trying to launch an ...READ MORE
Hi@akhtar, To deploy your app on App Engine, ...READ MORE
Hi@MD, You can follow the below steps to ...READ MORE
Hi@akhtar, You can enable new services to your ...READ MORE
Hi@akhtar, If you are using the default VPC ...READ MORE
OR
Already have an account? Sign in.