Dayong Sun
Dayong Sun
In settings.py > MIDDLEWARE = [ > 'django.middleware.security.SecurityMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.middleware.common.CommonMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'graphql_jwt.middleware.JSONWebTokenMiddleware', ### 'django.contrib.messages.middleware.MessageMiddleware', > 'django.middleware.clickjacking.XFrameOptionsMiddleware', > ]
I had the same problem with **ng new naq_monthly_settlement_report**. I fixed it with **ng new naq-monthly-settlement-report**
I had the same problem. I figured out that I created a wrong type of project. It should be Windows Console application that runs on .NET Framework,, not CoreApp console...
Should be user {id....} in the query. My bad
Very likely nodejs is running. Run "sudo netstat -plnt" and kill the process that holds port 8081 using "sudo kill -9 processid"
@slavugan I also followed django-cors-headers's instructions and set CORS_ORIGIN_ALLOW_ALL = True. And > OPTIONS http://my-django-graphene-site/admin returns "access-control-allow-origin →*". This means the cors-header is working. However, > OPTIONS http://my-django-graphene-site/graphql returns error...