Angular Development - API Server doesn't accept requests because of a missing XSRF Token

Hello everyone,

so i set up a angular development projekt using a local API server.

The API Server doesn't accept Requests because of a missing XSRF Token. 

When I look into the Development Tools, it tells me that the browser doesn't accept incomming  cookies because of a mismatched domain. 

Which is understandable since the cooke is sent with /APIServer as Path while the API Server runs locally under http://localhost:8182

(hence no XSRF Token set on the browser, hence no XSRF Token sent back) 

How do I fix this issue?

Greetings

Ivo Burkatzki

Parents
  • Hello Everyone,

    sorry for not answering, i didn't even realise that the thread was active. The moderation policy had me confused.

    I solved this problem by disabling CSRF protection in my development environment.  API-Server-> Admin-Portal-> Configuration -> Category: IMX  -> Globally disable CSRF protection tokens

Reply
  • Hello Everyone,

    sorry for not answering, i didn't even realise that the thread was active. The moderation policy had me confused.

    I solved this problem by disabling CSRF protection in my development environment.  API-Server-> Admin-Portal-> Configuration -> Category: IMX  -> Globally disable CSRF protection tokens

Children