CORS Errors when developing locally

My Setup

  1. Shared or Dedicated Server? Shared
  2. Did your setup the server or install Magento yourself? Self setup using Craig’s 2.4 guide. Works great!
  3. What are your server specifications? 2CPU 4GB RAM
  4. What version of Magento are you using? 2.43

What I’m trying to do

Develop an app to use with the Magento instance

What happened…

I’m developing an app to use with my Magento instance and have used Craig’s 2.4 install guide - which works fantastic. No complaints - however, CORS errors have started happening.

When developing the app locally (Magento is on an AWS EC2 instance), my HTTP requests are getting CORS errors. Have tried editing the .htaccess and the Apache .conf, as instructed in other help resources, but to no avail

Can anyone tell me what lines to insert into which location to fix these errors please? Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.