Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch api cors

fetch(URL, {
  mode: 'cors',
  headers: {
    'Access-Control-Allow-Origin':'*'
  }
})
  .then(response => response.json())
  .then(data => {
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fetch #api #cors
ADD COMMENT
Topic
Name
3+7 =