Created question in FIWARE Q/A platform on 04-07-2018 at 09:07
Please, ANSWER this question AT https://stackoverflow.com/questions/51167729/manage-options-request-to-the-keyrock-api
Question:
Manage OPTIONS request to the KeyRock API
Description:
I´m trying to access the KeyrRock Api like in the url : https://keyrock.docs.apiary.io/#reference/keyrock-api/authentication/create-token-with-password-method.
For example to create a token with user and password, POST https://keyrock/v1/auth/tokens
The problem is than when a try to do a request post in a web browser to the API the browser automatically do an OPTIONS requets first, and the KeyRock can manage the OPTIONS requests because only allows POST,GET,HEAD,DELETE method.
How can I configure the fiware-idm proyect to solve this?
(I think that the problem can be for the CORS configuration)