Page 1 of 1

Editing the Rest API CORS Policy

Posted: Thu 28. Jul 2022, 19:46
by crumblepaper
Hi everyone,

I would like some help understanding where to make changes to the CORS policy so that another domain can fetch the resources.
The origin is https://platform.appgyver.com.

I have changed the policy in the apache2.conf, and the keyhelp.conf and it works for other headers, but it will not allow the origin any success. I wanted to change the policy in the .htaccess of the server, but it seems that the change does not take effect.

Is there a file I am not going into, or should I be reading on something else to get the origin accepted.

Re: Editing the Rest API CORS Policy

Posted: Fri 29. Jul 2022, 10:12
by Alexander
Hello,

From which domain do you want to access the resources of https://platform.appgyver.com?

If it is the domain of one of your client accounts, you need to go to:

KeyHelp admin panel -> "Domains" -> Select the domain you want to set the CORS directives -> Go to the "Apache Settings" tab -> Enter your CORS policies here.

Alternatively, create an .htaccess file in the directory the domain points to.

Re: Editing the Rest API CORS Policy  [SOLVED]

Posted: Sat 30. Jul 2022, 00:28
by crumblepaper
Hi Alexander,

Thanks for your response. After searching for answers, I started reading and understanding the CORS. My issue was not with KeyHelp.

The live preview version from Appgyver has many sources, and it was even recommended in the Appgyver documentation to build a version and test with the built version on the server (Getting rid of the need for policy settings)

Re: Editing the Rest API CORS Policy

Posted: Fri 10. Feb 2023, 02:02
by crumblepaper
I'm wondering how can I edit the KeyHelp REST APIs CORS Policy. I've made http(s) directive updates on the root domain for the panel and the API is having preflight errors.

Re: Editing the Rest API CORS Policy

Posted: Fri 10. Feb 2023, 08:55
by Alexander
Without a detailed explanation of what changes you have made and what exactly you are trying to accomplish (sample code, etc.), this cannot be answered.