You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haproxy...@googlegroups.com
On Mon, Sep 7, 2020 at 1:48 AM Dean Kamali <dean....@gmail.com> wrote:
>
> Hello everyone,
>
> When I'm trying to submit a POST request to an endpoint on the same domain, I'm getting the following error
>
> Access to XMLHttpRequest at 'https://files.mydomain.io/files/' from origin 'https://app.mydomain.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
> I'm using kaproxy kubernetes ingress, and I have tried adding the following to my ingress rules but no luck.
>
> apiVersion: networking.k8s.io/v1beta1 > kind: Ingress
> metadata:
> name: kubernetes-ingress
> annotations:
> ingress.kubernetes.io/config-backend: |
> http-response set-header Access-Control-Allow-Origin "*"
>
> Any ideas?
Enabling CORS needs a bit more than just add the access control
header. Try this config: