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

Access-Control-Allow-Origin #135

Open
StephenAtty opened this issue Aug 19, 2018 · 2 comments
Open

Access-Control-Allow-Origin #135

StephenAtty opened this issue Aug 19, 2018 · 2 comments

Comments

@StephenAtty
Copy link

Should this be being set in the php code?

If you've set Access-Control-Allow-Origin in the apache config file (to stop leaching of bandwidth) then nothing works because you end up with two versions in the header.

Could it be made a switchable configuration in the $config global? So if needed people can turn it off

@hozikm
Copy link

hozikm commented Sep 6, 2019

I agree. Right now there is no way to limit origins. It's not possible in .php nor in webserver config because sending multiple Access-Control-Allow-Origin is always invalid.

@klokan
Copy link
Member

klokan commented Sep 6, 2019

A clean pull request is welcomed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants