I've got an error on accept an login request


#1

Before I’ve got this error, I encounter first CORS problem with my put request so I tried to add this on env

  • CORS_ALLOWED_ORIGINS=*
  • CORS_DEBUG=true
  • CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,PATCH
  • CORS_ALLOWED_CREDENTIALS=true
  • CORS_ALLOWED_HEADERS=Authorization,Accept,Accept-Language,Content-Language,Content-Type

And the CORS problem is gone. Now I have another problem. The return of my put request in accept and login request is an error.

error: “error”
error_debug: “EOF”
error_description: “The error is unrecognizable.”

btw, I’m using meteor http for requesting rest api

Thanks in advance. :slight_smile:


#2

I’ve already figure it out. I forgot to add subject in my data. :sweat_smile: . Thanks btw.


#3

My cors problem is solved. I have another problem. I can’t accept an login request, it says you are not allowed to perform this action.

An error occurred

request_forbidden

The request is not allowed

No CSRF value available in the session cookie


#4

Make sure the you’re not mixing up localhost and 127.0.0.1 - the domain name of hydra must always be the same. Avoid incognito mode or anything that might remove cookies (e.g. an API gateway or a browser plugin)


#5

hi @pabuaya34, do you have the solution for that CSRF issue?


#6

I’ve just follow arekkas instruction on making sure that the hydra domain name is the same.


#7

Hi, did you manage to solve the error? I’m getting the same msg.

Everything should be localhost instead of 127.0.0.1?