Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

gcloud storage cors

// create file cors.json, containing:
[
  {
    "origin": ["http://origin1.example.com"], // or ["*"] to allow all
    "responseHeader": ["Content-Type"],
    "method": ["GET"],
    "maxAgeSeconds": 3600
  }
]// then
$ gsutil cors set ./cors.json gs://<bucket_name>...
Comment

PREVIOUS NEXT
Code Example
Javascript :: react native datepicker disable future dates 
Javascript :: react scroll reset in component 
Javascript :: react run on route change 
Javascript :: video in react native stack overflow 
Javascript :: javascript form submit on button click check if required fields not empty 
Javascript :: javascript click events 
Javascript :: console table js 
Javascript :: commonjs vs es6 
Javascript :: sequelize delete item 
Javascript :: vue watch object member 
Javascript :: unable to open file in target xcode react native 
Javascript :: svelte ondestroy 
Javascript :: node js performance is not defined 
Javascript :: For loop sum in javascript 
Javascript :: joi validation custom message in node 
Javascript :: check if an object contains a value in javascript 
Javascript :: get value json python 
Javascript :: internal/modules/cjs/loader.js:1122 
Javascript :: regular expression javascript password strength 
Javascript :: react-router 
Javascript :: mongoose query if field exists where filed exists 
Javascript :: Reverse pyramid star pattern in JavaScript 
Javascript :: bootstrap icons react 
Javascript :: empty input of clone jquery 
Javascript :: local storage 
Javascript :: disable button click jquery 
Javascript :: add class when element in viewport vanilla javascript 
Javascript :: load base64 image in tab javascript 
Javascript :: Both npm and yarn have created lockfiles for this application, but only one can be used to install dependencies. 
Javascript :: permutation javascript 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =