Re: Access to XMLHttpRequest has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
francis at daoine.org
Thu May 28 12:41:39 UTC 2020
On Thu, May 28, 2020 at 12:50:34PM +0530, Kaushal Shriyan wrote:
> Access to XMLHttpRequest at ‘
> > https://tmobilereactdrupal.mydomain.com:8080/oauth/token’ from origin ‘
> > https://tmobilereactdrupal.mydomain.com’ has been blocked by CORS policy:
> > No ‘Access-Control-Allow-Origin’ header is present on the requested
> > resource.
In your "drupal" nginx config, if the request is handled in the "php"
location, there is no Access-Control-Allow-Origin header added.
You might want the "add_header" line there instead.
Good luck with it,
Francis Daly francis at daoine.org
More information about the nginx