Getting 204-No Content from response of any POST Servlet call
Hi,
We have created first POST type Servlet call in my current project, and getting 204-No content in response. In Publisher environment, it is throwing 200 as expected. But, as we used Akamai for cache management, in Akamai URL, it is throwing this error.
We investigated further and found in Akamai URL, for all POST servlet calls, a Header Parameter named "Origin" got added with the value, domain name of the Akamai URL. Same issue we can replicate in POSTMAN also, when we are adding "Origin" with value - domain name of the Akamai URL in Header, it is throwing 204-No content. But if we remove that from Header in POSTMAN call, then only we are getting proper response.
We tried but unable to discard that header parameter "Origin" at the time of POST servlet call. From publisher environment, this header parameter is not getting added.
Is there any way to discard that parameter in POST Servlet call from Akamai URL ?
I have added Akamai URL' domain in the value of "alloworigin" parameter of CORS Policy config and also added the path in the value of "allowedpaths" parameter in same config.
Please let me know if anyone have any solution of this issue..
Thanks.