Hi Jon,
I haven't resolved this, I have committed some changes, cors policy in reverse proxy was configured as shown:
[cors-policy:apiac_policyA]handle-pre-flight = truemax-age = 0allow-credentials = trueallow-origin = *request-match = POST /mga/*request-match = GET /mga/*request-match = OPTIONS /mga/*request-match = PUT /mga/*request-match = DELETE /mga/*request-match = POST /mga/sps/oauth/oauth20/register/OIDCDefinitionrequest-match = GET /mga/sps/oauth/oauth20/register/OIDCDefinitionrequest-match = OPTIONS /mga/sps/oauth/oauth20/register/OIDCDefinitionrequest-match = PUT /mga/sps/oauth/oauth20/register/OIDCDefinitionrequest-match = DELETE /mga/sps/oauth/oauth20/register/OIDCDefinitionAccess-Control-Allow-Headers = content-type,acceptAccess-Control-Expose-Headers = access-control-allow-originWhen I attach "isam oauth unauth" ACL to register endpoint both request "introspect" and "register" are performed without issues.


The above assumes that dynamic clients can be registered without any security, that is, without the need for authentication to carry out the request, right?
If I attach the original ACL ("isam oauth rest") to the register endpoint CORS policy blocked register request again.


I cannot see a "pre-flight" request/response in the "introspection" request.
This is the pre-flight response in this case

Requests to these endpoints are donde with simple xhr request over javascript in the "Introspect" and "myRegistry Functions".

Let me get some time to generate the "pdweb.debug" trace.
Thanks in advance Jon. Regards.
------------------------------
David Vicenteño
------------------------------
Original Message:
Sent: Thu June 24, 2021 03:47 AM
From: Jon Harry
Subject: OIDC register endpoint CORS error
Hi David,
Did you ever figure this out? If you did, what was the answer?
If not:
- It seems odd to me that two (essentially identical) requests would result in one working and one failing.
- Is there any difference in the way the call is being made from client-side JavaScript? Can you share the script sample?
- Also, can you share the response from the pre-flight check in both cases - maybe even a pdweb.debug trace of these?
- I wonder if @Scott Exton has any ideas.
Jon.
------------------------------
Jon Harry
Consulting IT Security Specialist
IBM
Original Message:
Sent: Mon May 24, 2021 01:28 PM
From: David Vicenteño
Subject: OIDC register endpoint CORS error
Hi, We are developing a sample application to show customer verify access compliance for open banking, specifically oidc dynamic client registration, so we faced cors policies to allow access verify access from the sample application, we configure a sample cors policy in reverse proxy configuration file as shown:
[cors-policy:apiac_policyA]
handle-pre-flight = true
max-age = 0
allow-credentials = true
allow-origin = *
request-match = POST *
request-match = GET *
request-match = OPTIONS *
Request to introspect endpoint coul be performed without issue as shown in the first screenshot

But request to register endpoint keeps responding with CORS error as shown.

Does anybody faced the same issue? Any clue?
Thanks in advance.
Regards.
------------------------------
David Vicenteño
------------------------------