mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[GH-ISSUE #260] CORS Support #118
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @odysseyjason on GitHub (Aug 11, 2020).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/260
I needed this to work on a docker on localhost, but with CORS support for a webgl threejs application. I could not find any documentation on how to enable this in any ini settings so I added the following code to app.php and it took care of the problem completely.
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Max-Age: 1000");
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding");
header("Access-Control-Allow-Methods: PUT, POST, GET, OPTIONS, DELETE");
.....
Perhaps it should be configurable?
@github-actions[bot] commented on GitHub (Aug 10, 2023):
This issue is stale because it has been open for 30 days with no activity.
@github-actions[bot] commented on GitHub (Aug 25, 2023):
This issue was closed because it has been inactive for 14 days since being marked as stale.