Remove Specific Request Headers From Response
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Remove Specific Request Headers From Response

  1. Shutdown the server if it is already running.

  2. Open the <API-M_HOME>/repository/deployment/server/synapse-configs/default/sequences/main.xml file.

  3. Add the name of the header to be removed as a property, just before the beginning of send mediator, as shown below

    <property name="<name of the header to be removed>" scope="transport" action="remove"/>
    <property name="Accept" scope="transport" action="remove"/> <property name="X-JWT-Assertion" scope="transport" action="remove"/> <property name="Cookie" scope="transport" action="remove"/> <send/>
  4. Open the <APIM_HOME>/repository/deployment/server/synapse-configs/default/sequences/fault.xml file.

  5. Add the name of the header to be removed as a property property, just before the beginning of "CORS request handler" sequence, as shown below.

    <property name="<name of the header to be removed>" scope="transport" action="remove"/>
    <property name="Accept" scope="transport" action="remove"/> <property name="X-JWT-Assertion" scope="transport" action="remove"/> <property name="Cookie" scope="transport" action="remove"/> <sequence key="_cors_request_handler_"/>
  6. Start the server.

 

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.