Preparing for Confluence 9.0 - EAP out now

Is this a bug of Confluence 9? :face_with_spiral_eyes:

I have set the system property “confluence.pdfexport.allow.local.hosts=true” on Confluence 9.0.1 Data Center, but the pdf export stylesheet still doesn’t work.
(But it works well on Confluence 8.9 )

pdf export stylesheet:

@page{background:url('http://localhost:8090/rest/my-app/1/xxxxx') repeat center;}
@page{background:url('http://127.0.0.1:8090/rest/my-app/1/xxxxx') repeat center;}
@page{background:url('http://my-Confluence9-base-url/rest/my-app/1/xxxxx') repeat center;}

The rest method from my app is shown below, and when I visit ‘http://my-Confluence9-base-url/rest/my-app/1/xxxxx’ in the browser, it returns the image successfully:

    @Path("/xxxxx")
    @GET
    @AnonymousSiteAccess
    @CorsAllowed
    @UnrestrictedAccess
    @XsrfProtectionExcluded 
    public Response xxxxx(@Context HttpServletResponse response, @Context HttpServletRequest request) {
        ......
        response.setHeader("Content-Type", "image/png");
        ImageIO.write(bi, "png", response.getOutputStream());
}

atlassian-plugin.xml:

<rest key="some-rest" path="/my-app" version="1"/>
<rest-migration key="rest-migration-key">
        <rest-v2/>
</rest-migration>