Skip to content

Add 'Origin' header to same-origin non-GET requests #461

Description

@RuralHunter

Currently HtmlUnit only adds 'Origin' header for true CORS requests.

https://stackoverflow.com/questions/15512331/chrome-adding-origin-header-to-same-origin-request

Per the link above, "Chrome and Safari include an Origin header on same-origin POST/PUT/DELETE requests (same-origin GET requests will not have an Origin header)". I checked the latest version of Firefox, it also adds Origin header for non-GET requests.

I think HtmlUnit should better add it as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions