Initially I publish an index.html with iframe in it of my application in netlify.
However, I have Safari issue with error of cookies as Safari by default discards cookies set in an iframe.
Currently looking for other solution such as the proxy, but now there is CORS issue.
I’m curious why you don’t configure the domain you are trying to proxy from directly on the service you are proxying to—an alias if you wish. Adding the appropriate DNS records and configuring the service to use the domain sounds like a much better method.
I am sorry I don’t understand. You mean getting a proxy server service as such ?
My current Bubble backend application can only set to 1 main domain while I have to split into many domains for different clients with different domains respectively. I thought I could just provide them the IP from netlify to my clients to set up their domains.
I came across Netlify through browsing where people use the redirect.
A better way to implement something on Netlify is to have a site to deploy which uses a proxy e.g.
[[redirects]]
from = "/api/*"
to = "https://api.somewhere.com/v1/:splat"
status = 200
or function (especially if you wish to keep API keys secret), to access the backend API (that’s the A in JAMstack afterall.)
Simply using Netlify to proxy an entire site is a poor use of the service at best (have you read the Terms of Use Agreement by any chance?) Given the backend is running on Cloudflare you are proxying to another CDN—see [Support Guide] Why not proxy to Netlify? (though this is possiblly the reverse for you.)
In effect what you are doing is masking the URL of the backend. Some registrars (e.g. Namecheap) have URL Redirect Records which you can set as masked which is likely a better option.