<div dir="ltr">Hi,<br><div><br></div><div>I am running Nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core) and have hosted react.js javascript 16.13.1 and Drupal CMS Framework 8.7.8. </div><div><a href="https://tmobilereactdrupal.mydomain.com">https://tmobilereactdrupal.mydomain.com</a> (react.js javascript 16.13.1) which in turn talks to <a href="https://tmobilereactdrupal.mydomain.com:8080">https://tmobilereactdrupal.mydomain.com:8080</a> (drupal framework version 8.7.8). Both react js on port 443 (frontend) and drupal cms on port 8080 (backend) are running on the same Nginx webserver.<br></div><div><br></div><div>When I hit <a href="https://tmobilereactdrupal.mydomain.com">https://tmobilereactdrupal.mydomain.com</a> (react.js framework frontend on the port 443) connects to <a href="https://tmobilereactdrupal.mydomain.com:8080">https://tmobilereactdrupal.mydomain.com:8080</a> (Drupal CMS 8.7.8 backend on the port 8080)<br></div><div>I am encountering the below error in Developer tools console which is a plugin in the browser.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#000000">Access to XMLHttpRequest at ‘<a href="https://tmobilereactdrupal.mydomain.com:8080/oauth/token">https://tmobilereactdrupal.mydomain.com:8080/oauth/token</a>’ from origin ‘<a href="https://tmobilereactdrupal.mydomain.com">https://tmobilereactdrupal.mydomain.com</a>’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.</font></blockquote><div><br></div><div>I have attached both the Nginx config file for the react.js framework (frontend) and Drupal CMS 8.7.8 backend. Any help will be highly appreciated. I have added  add_header 'Access-Control-Allow-Origin' '*' always; in nginx.conf and is not honoring the settings. I look forward to hearing from you. Thanks in advance.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div></div>