Hi All,
At work I have bitbucket server reached at https://ourdomain.com
I am calling api using the below endpoing:
https://ourdomain.com/rest/api/1.0/projects etc....
I am using this below header on Angular:
'ContentType': 'application/json',
'Authorization': 'Basic ' + btoa(this.apiCredential.login + ':' + this.apiCredential.password),
And I built a file proxy.conf.ts where i am changing the target with https://ourdomain.com to use the built in proxy and its working But this will only work while on development mode.
Could you please let me know the good header I need to include to avoid getting the CORS issue while I will deploy in prod.
I tried : to add the below in the header but this did not worked.:
'Access-Control-Allow-Origins': '*',