Fixing CORS Preflight Errors on Your Express.js API
Trying to access or allow users to access your Express.js API but getting CORS errors? Fix the errors by adding these few lines of code.
ViewHi, I'm Tyler. When I'm not biking🚴,playing the guitar🎸,or building legos with my kids👦👧👦👶,I'm usually typing up lines of code on my MacBook💻. Even though I received my Bachelor's Degree in Marketing, I started out my career in operations and spent 6 years in operations management for Pepsi and Peapod. Not inspired, I shifted focus to web development, learned to code and have spent the past 4 years as the lead website developer for a local marketing agency.
On the side, I've been honing my development skills with projects and product ideas. I've launched 9 products to-date onProduct Huntand have experimented with hundreds of smaller projects both on my site and the sites of clients that I've had the privilege to create and support. The topics of focus have included SEO, sports, font icons, and business consulting.
Right now, I'm dedicating all possible time to transforming myself from a self-taught coder into a senior level programmer and computer scientist.💯
Skills based on experience level and time accrued via client work and personal projects
Computer science, programming and code examples, blog posts, and small projects.
Trying to access or allow users to access your Express.js API but getting CORS errors? Fix the errors by adding these few lines of code.
ViewTo encourage ticket sales, I built a real-time tickets purchased ticker in Node.js using WebSockets in an incredibly short amount of code.
ViewBy lifting-state-up and maintaining your application's state in a parent module you can ensure modularity and the separation of views.
ViewDo you have a site built in React that you want to generate organic traffic? If so, you need to search engine optimize your site and it starts with custom, dynamic metadata.
ViewCreating a TypeScript class is a great way to write code efficiently. Here's how you can create an eventListener class and implement it in a browser.
ViewProducts, projects and platforms
Bit Mountain is a website accessibility plugin that helps website owners make their sites ADA compliant.
ViewNPM express-modularity is a JavaScript module that works with Express.js to create React-like modular routing files.
ViewDate-Mirror is a JavaScript module that enables users to format and render dates and times similar to PHP 'date' while also allowing ranges and plain text.
View100 Days of Computer Science is a resource platform for programmers looking to level-up their CS skills with links to free resources and flash cards.
ViewI wanted to create an easier way to add computer science links to the 100Daysofcs.com website, so I created a Chrome Extension!
View