Cross-Origin Resource Sharing (CORS) is key to making websites work the way we want them to. How does it protect us from cyber-attacks?

Users at a laptop
Users at a laptop
Photo by John Schnobrich on Unsplash

The short answer is IT doesn’t.

Have you ever seen this error?


Deep dive into a question from the AWS Solutions Architecture Professional Exam about cross-origin resource sharing (CORS) and static web hosting.

This post details one exam question you may encounter on the AWS Solutions Architect Professional exam (SAP-C01). When preparing for an AWS exam, I find it really useful to do a deep dive into several questions to understand the related services and concepts. Studying to a deeper level beyond just the question and answers helps me feel more prepared on exam day. I have found that dissecting exam questions helpful to grow my AWS knowledge. …


Debounce user input and props with useCallback, useEffect, & useState. Also, learn how to create your own useDebounce custom React hook.

Photo by Samuel-Elias Nadler on Unsplash

If you are reading this post, you probably know what it means to debounce user input and want to see how to use it in your React app. Just in case you read the title of this post and said, “Debounce — that sounds cool. What is that?” I’ll go over what debounce is and why you may need it in your app. Scroll down if you know what this is and just want to see the code.

This post shows three debounce examples:

  1. Debouncing user input as they type
  2. Debouncing a prop that is changing rapidly from a parent…


Using styled-components and Redux

In this tutorial, we will learn how to build a React app with fully customizable themes using styled-components and Redux.

I sometimes get pretty far into a web project and wish I had supported theming (or just done better CSS management in general) from the beginning. There are many component libraries (i.e., Material UI, etc…) that provide various UI elements with features that enhance basic HTML. These libraries usually also have their own theming mechanisms in place. Using styled-components as described in this article is fully compatible with Material UI and its theming approach. …


How to right-size your AWS deployment.

Photo by Nathan Duck on Unsplash

If you Google how to run WordPress on AWS, you might come across a white paper from Amazon that shows the following:


AWS Solutions Architect Series — Exam Prep

Amazon recently posted a new set of AWS exam questions for the Solutions Architect Professional (SAP-C01) exam, and I am excited to dig into them. As I have prepared this and other AWS exams, I found dissecting exam questions helpful to grow my AWS knowledge. This post is a bite-sized study guide that will hopefully expand your knowledge of AWS and help you on your journey to becoming a Solutions Architect as well.

For each post in this series, I choose one AWS Solutions Architect Professional exam question. We will explore the required knowledge and strategy to find the right…


AWS Solutions Architect Series — Exam Prep

As I have prepared for AWS exams, I found dissecting exam questions helpful to grow my AWS knowledge. This post is a bite-sized study guide that will hopefully expand your knowledge of AWS and help you on your journey to becoming a Solutions Architect as well.

For each post in this series, I am choosing one AWS Solutions Architect Professional exam question. We will explore the required knowledge and strategy to find the right answer and learn about a few AWS services along the way.

The following question is from the AWS Certified Solutions Architect, Professional Level — Sample Exam…


IPv4 has completely run out of IP addresses. All 4.3 billion addresses used. What now?

In November of last year, RIPE NCC made the final IPv4 address allocation and has officially run out of addresses. The other four regional internet registries ran out years ago.

Photo by Krzysztof Hepner on Unsplash

Registries give address blocks to Internet service providers (ISPs). ISPs have pools of addresses that they, in turn, assign to their customers (this is how your home cable modem gets internet access). But ISPs cannot get any more IP addresses. There are none left. But we don’t have to be worried (this is not Y2K). Luckily, we have IPv6.

Internet Protocol Version 6 (IPv6) has a much larger number of…


Solutions Architect Series — Practical Exercises for Passing the AWS Solutions Architect Exam

The best way to prepare to pass any AWS exam is to actually use AWS services. I have seen people complain that some so-called certified AWS Solutions Architects can’t even spin up an EC2 instance. Don’t be one of those solutions architects! True, some people probably can pass the exam only by reading and memorizing the docs, there is no better thing than actual experience.

Documentation + Experience = Passing the Exam

The important thing to keep in mind for the exam it that it is not only important to know how to do something, but also to understand why


How to Create Self-Signed Certificate for a Private Docker Registry

I am working on setting up a Kubernetes cluster using Rancher on a set of VirtualBox VMs managed by Vagrant to run applications in Docker containers. Woah — that’s a mouthful! While this is one somewhat complicated case, there are lots of other reasons you may want to create a self-signed certificate. Obviously, you never want to run with a self-signed cert in production, but you can use them to run and test Apache web servers, Express.js servers, and many more.

Photo by Markus Spiske on Unsplash

With my setup, one of the fun things to do is to set up the private Docker registry on…

Ezra Bowman

Systems Architect. Software Engineer. Cloud, Code, Technology, DevOps. Automate Everything. I blog at https://NoDeployFriday.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store