Skip to content

Headers explanation #5

@ejgutierrez74

Description

@ejgutierrez74

Nice tutorial but would be nice to explain the different headers in different files_ like:

header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Max-Age: 3600");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");

Why are there ? Are there optional or mandatory ? because the files have different header ? For exmple read.php has only two headers...

Would be nice also to have a non-object oriented version of this tutorial.....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions