Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

README.MD error about context settings #39

@azeller

Description

@azeller

setting site_url (which will be the complete URI of the site root) doesn't need to be defined without the www, when adding the www-redirect in the system settings. Actually, it must not, and here's why:

Consider a site that has a FormIt Ajax-Call to a responder-template that responds JSON. This will have the site_url domain.com and be receiving a request from www.domain.com and therefore violate the CORS policy unless you explicitly allow cross-origin requests (which will be too high-level for most users).

Correct config would consequently be site_url WITH the www - so the final version of it and http_host WITHOUT it to make it redirectable.

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