CORS
This commit is contained in:
parent
24fad3bb59
commit
e850d14c2b
@ -58,6 +58,12 @@ SimpleRouter::group(["middleware" => Khofmann\Auth\Auth::class], function () {
|
|||||||
SimpleRouter::patch("/users/self", [Api\Users\Users::class, "patchSelf"]);
|
SimpleRouter::patch("/users/self", [Api\Users\Users::class, "patchSelf"]);
|
||||||
// Update image self
|
// Update image self
|
||||||
SimpleRouter::patch("/users/self/image", function () {
|
SimpleRouter::patch("/users/self/image", function () {
|
||||||
|
Response::response()
|
||||||
|
->header("Cache-control: no-cache")
|
||||||
|
->header("Access-Control-Allow-Origin: *")
|
||||||
|
->header("Access-Control-Allow-Methods: *")
|
||||||
|
->header("Access-Control-Allow-Headers: *");
|
||||||
|
|
||||||
print_r(Input::file("image"));
|
print_r(Input::file("image"));
|
||||||
echo "\n";
|
echo "\n";
|
||||||
print_r(Input::patch("predefined"));
|
print_r(Input::patch("predefined"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user