Hi,
I am using scrivener headers in my app and the cors_plug. It seems cors_plug removes the headers generated by scrivener. I am consuming my phoenix api with a javascript client.
I would like to add the headers, so I can use the pagination, but no idea how to add them to the configuration.
I use in my endpoin.ex this configuration: plug CORSPlug, origin: ~r/http:\/\/localhost:3333$|https:\/\/.*\.xxx$/
How can I add the Access-Control-Expose-Headers
to my endpoint?
With the jquery ajax call and request.getAllResponseHeaders()
I get only the default headers (header spec)
With Postman and Browser the headers are visible.
I am a bit lost.