DEV Community

Cover image for Demystifying CORS - Everything You Need to Know

Demystifying CORS - Everything You Need to Know

Thisura Thenuka on March 01, 2023

If you’re a web developer, chances are you’ve come across the pesky CORS error. But fear not! This article is here to help fellow developers unders...
Collapse
 
aarone4 profile image
Aaron Reese

Nope. Still confused ...
Which bits are CONFIGURED on the RESPONDING domain and which bits are COMMUNICATION between REQUESTING domain and RESPONDING domain.

Collapse
 
thisurathenuka profile image
Thisura Thenuka

Hi Aaron,

Simply put, you have to configure the responding domain (service) to allow requests from the requesting domain. Usually, there's nothing that can be done from the frontend unless you're using a proxy server. (Btw, I'll be writing a separate article on how to setup a proxy server to avoid CORS errors).

Hope this clears your confusions

Thanks and Regards,
Thisura