on 04-18-2021 12:46 AM
I want to restrict the origin in XSJS to "https://example.com" but even after tsetting the access-control-allow-origin header in the code I still get wildcard "*" in my response.
I have tried setting the allowedOrigin in mta.yaml file and also tried directly in the .xsjs file
In mta.yaml file:
In .xsjs file:
But my response:
I am unable to understand where I am going wrong.
how about
host: "example.com"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.