Skip to content

CORS #118

@SilipTv5

Description

@SilipTv5

Hi this is very basic question but i spent a lot of time but no success, im using nuster as a cache server and need to add CORS, below is my simplest config file

global
    nuster cache on dir /cache
    nuster manager on uri /internal/nuster purge-method PURGEX
frontend fe
    bind *:443 ssl crt /cert.pem alpn h2,http/1.1
    mode http
    default_backend be
backend be
    mode httpde
    nuster cache on
    nuster rule all disk on ttl 7d
    server s1 1.1.1.1:80

i tried to add CORS
http-response set-header Access-Control-Allow-Origin "yourhostname.com"
but no success
any idea plz?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions