Categories
Mastering Development

Angular and Node.js Socket IO Issue

I’m trying to send messages from an Angular front end to a Node.js server. I’m using socket.io and Node.js as my server, and running an Angular front end using the ngx-socket-io module. I followed the examples but I’m getting this error: http://localhost:3000/socket.io/?EIO=3&transport=polling&t=NPDJPOe (POST Request) {"code":2,"message":"Bad handshake method"} Here is my game.service file: import { Injectable […]

Categories
Mastering Development

Django + React Able to create new user in database, but token-auth returns 400 bad request

So I have an app that I’m writing. It’s working, for the most part, so far. I only currently have a login and signup setup, with a ‘homepage’ that just has a logout button and some text on it so I can test. When I do signup, it posts the user to the database, but […]

Categories
Mastering Development

configure nodejs rest api server and vue project with axios cors policy error

as the title sais, i’m trying to configure a local rest api server running node js and in the meantime i have a vue project with axios. i surfed the whole internet, tried every server/client configuration, server headers settings, cors package, axios header config, but i still have cors policy error inthe console. postman works […]

Categories
CMS Drupal Mastering Development

Why authenticate request returned 403 after successful login?

I have front-end with AngularJS and its connected to drupal backend. I am using drupal services module for rest api. I have an angularjs web app in subdomain [admin.example.com]. My authentication subdomain [account.example.com] developed with drupal 7. I can login successfully to account.example.com from admin.example.com using http request from angularjs, so I stored newly generated […]

Categories
CMS Drupal Mastering Development

Why authenticate request returned 403 after successful login?

I have front-end with AngularJS and its connected to drupal backend. I am using drupal services module for rest api. I have an angularjs web app in subdomain [admin.example.com]. My authentication subdomain [account.example.com] developed with drupal 7. I can login successfully to account.example.com from admin.example.com using http request from angularjs, so I stored newly generated […]

Categories
CMS Drupal Mastering Development

Why authenticate request returned 403 after successful login?

I have front-end with AngularJS and its connected to drupal backend. I am using drupal services module for rest api. I have an angularjs web app in subdomain [admin.example.com]. My authentication subdomain [account.example.com] developed with drupal 7. I can login successfully to account.example.com from admin.example.com using http request from angularjs, so I stored newly generated […]

Categories
CMS Drupal Mastering Development

Why authenticate request returned 403 after successful login?

I have front-end with AngularJS and its connected to drupal backend. I am using drupal services module for rest api. I have an angularjs web app in subdomain [admin.example.com]. My authentication subdomain [account.example.com] developed with drupal 7. I can login successfully to account.example.com from admin.example.com using http request from angularjs, so I stored newly generated […]

Categories
Mastering Development

CORS error with passport github on a MERN app is about to drive me crazy [duplicate]

I keep getting this cors error on the client side. I tried hosting the app but the error is still persistent. I’m working on a node/express/passport app with react frontend. I have enable cors for the appropriate url. I don’t know what else to do. Anyone with helpful information, please share. BAckend code const sessionOptions […]

Categories
CMS Drupal Mastering Development

Why authenticate request returned 403 after successful login?

I have front-end with AngularJS and its connected to drupal backend. I am using drupal services module for rest api. I have an angularjs web app in subdomain [admin.example.com]. My authentication subdomain [account.example.com] developed with drupal 7. I can login successfully to account.example.com from admin.example.com using http request from angularjs, so I stored newly generated […]

Categories
Mastering Development

Autodesk forge Webhook API, Error 400 400, VALIDATION_ERROR

using autodesk forge API, I am trying to create a webhook over folder using the following information; unfortunately, I am receiving the following response: { "id":"xxxx-xxxx-xxx-xxxxx", "status":400, "code":"VALIDATION_ERROR", "detail":["Payload is not valid for serialization"] } URL: https://developer.api.autodesk.com/webhooks/v1/systems/data/events/dm.folder.added/hooks (for specific folder added event) or: https://developer.api.autodesk.com/webhooks/v1/systems/data/hooks (for all events). Both are returning the same error Header: { […]