Skip to content

Jenkins URL #248

@xjjx

Description

@xjjx

Jenkins and plugins versions report

Theme Manager plugin add JENKINS_URL to css files. When user access Jenkins by different address than that configured as JENKINS_URL, the browser blocks some files because of:

"A cross-origin resource sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated preflight request ."

I believe links to css should be relative.

Reported also as https://issues.jenkins.io/browse/JENKINS-72816

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux, official docker images for jenkins

Reproduction steps

Access jenkins by URL different that configured as JENKINS_URL

Expected Results

relative links to css files

Actual Results

blocked by browser when accessing via different url than JENKINS_URL or different port. For example we use separate port for HTTP2

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions