What is the name of the domain?
domain.com
What is the issue you’re encountering
Cors issue
What steps have you taken to resolve the issue?
I have an application on a DigitalOcean Droplet. It works fine.
It has a frontend on domain.com
An api on api.domain.com
Since I use Cloudflare I have CORS errors when the frontend (domain (dot) com) performs api-calls towards api.domain (dot) com.
I like to emphasise that this was not the case when I used DigitalOcean only.
Please suggest me a solution,
Roy
Preflight Request URL:
https://api.domain.com/products?between=price,1,100&page=1
Request Method:
OPTIONS
Status Code:
301 Moved Permanently
Referrer Policy:
strict-origin-when-cross-origin
Actual Request:
https://api.domain.com/products?between=price,1,100&page=1
CORS error
disabling the reverse proxy for api.domain.com worked… but I’m not sure if this is the best solution.
system
Closed
4
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.