cancel
Showing results for 
Search instead for 
Did you mean: 

CORS policy error in APIM

deepanshu_1
New Contributor III

Hello All,

When we are trying to expose a pipeline as API using the Snaplogic API management by implementing the generic oauth2 policy & default CORS policy. We are getting the error in the API developer portal.

I have attached the screenshots as well.

Can someone please help on this.

Thanks in advance.

deepanshu_1_0-1708105618305.pngdeepanshu_1_1-1708105637410.pngdeepanshu_1_2-1708105656873.png

 

 

 

 

1 REPLY 1

JensDeveloper
Contributor II

Hello @deepanshu_1 ,


All Authentication policies require the Authorize By Role policy to authenticate the API caller correctly. For example, you can configure this policy to add the role “admin” to the client and then configure the Authorize By Role policy to authorize users with that role.

 Did you also disable/enable the cors policy in the portal manager settings: https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1978731409#enable-try-it-out because then it applies to all the apis that you publish 

Regards

Jens