Articles tagged cors
Fixing Common Problems with CORS and JavaScript
![Fixing Common Problems with CORS and JavaScript](/assets-jekyll/blog/fix-common-problems-cors/social-ecb52bc9be3899e58d8a5d8635617f78bb71fbbcfe37d71db3d548b4e2c2f617.png)
Many websites have JavaScript functions that make network requests to a server, such as a REST API. The web pages and APIs are often in different domains. This introduces security issues in that any website can request data from an API. Cross-Origin Resource Sharing (CORS) provides a solution to these issues. It became a W3C recommendation in 2014. It makes it the responsibility of the web browser to prevent unauthorized access to APIs. All modern...