Skip to content

. / Rubber Chickin

® A Modest Larger-Than-Life Tech Blog™, inc.

  • News
  • Podcast
  • How To’s
  • Books List
  • About
  • Contact

policy

August 27, 2019August 27, 2019

CORS error when reading remote .json file

The easy fix to allow your Web App to read remote json files from the server is to create the .htaccess file.

Create an `.htaccess` file and place it in the directory of the json files.

<Files "*.json">
  Header set Access-Control-Allow-Origin "*"
</Files>

Simply reload your app and it should work! good luck!

Categories Angular, IonicCategories angular, Apache, Cors, http, ionic, json, php, policy

About

A blog about tech, coding, entertainment, and other random ramblings.

Recent Posts

  • Interview Date
  • Nomad AI – on-device ai assistant that works offline
  • Announcing the Best Free Online Guitar Tuner: Tune Your Guitar Quickly & Easily!
  • Think Different: Steve Jobs’ Quest for Perfection
  • Talking with Machines: The Rise of Large Language Models
  • Layers of Connection: Demystifying the OSI Model
  • Cyber Wars: Inside the Battle for Digital Security
  • Behind the Kernel: Exploring the World of Operating Systems
  • AGI Awakens: Will Machines Outsmart Humanity?
  • ANN-atomy: Inside the Mind of Neural Networks
  • Getting Intimate with Stacks: LIFO and Chill
  • Achieving the Big O: Maximizing Performance in Code (and Beyond)




Rubber Chickin, 2021.