Skip to content

Setting CORS headers #182

@fthues

Description

@fthues

We're submitting data to the plugin from a different domain. We're setting the required CORS headers via .htaccess (so the OPTIONS request goes through) but Craft seems to remove them from the actual POST request, which seems to be a problem for Axios.

The way I see it there is no way of overriding the controller to add headers to the response. Any hints as to how to approach this?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions