midnightexplorer
CDCloudflare Developers
•Created by midnightexplorer on 9/24/2024 in #general-help
403 API Call Adding DNS record.
I have an API token created with permissions to edit zone, zone settings, ssl & certs, and dns firewall. when i try and post to the dns_records api and create a record it's failing with a 403 forbidden for url.
i verified i have my token being used and that my zone ID is correct. any ideas?
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.cloudflare.com/client/v4/zones/myzonehere/dns_records
my code:
2 replies
CDCloudflare Developers
•Created by midnightexplorer on 7/19/2024 in #general-help
1014 Error - CNAME Records
I am building a platform where people can publish a website built on my platform under their own domain. I run the servers, they bring their domain. The idea is I have A records on my (host) subdomain, called "sites". Then the clients can CNAME www to sites.mydomain.com. My server checks the host of who's contacting and replies appropriately the public landing page.
Currently when I do this on Cloudflare, I get at 1014 error. I was able to work around it with "DCV Delegation for Custom Hostnames", but I feel like there's got to be a better way to fix this.
3 replies