Skip to main content
Solved

Cannot access api docs through Aurena

  • September 3, 2021
  • 1 reply
  • 268 views

Chathura Karunarathna
Hero (Employee)
Forum|alt.badge.img+9

When trying to use API documentation through Aurena API Explorer, I come up against the error detailed in doc attached

Best answer by Charith Epitawatta

Hi @Chathura Karunarathna,

Looks like you are trying to access API Doc of an environment hosted in ifs.cloud domain from your local computer and getting a 403: Unauthorized error. You can directly access API Doc only in CORS(Cross-Origin Resource Sharing) enabled environments according to following documentation.

https://docs.ifs.com/techdocs/foundation1/045_administration_aurena/240_integration/010_api_doc/default.htm

This is usually a configuration set in server side that clients decide to enforce or not. All modern browsers enforce this but tools like Postman do not. So you can see whether you get the same error with Postman. You may get a 401: Unauthorized error though, in which case you may have to provide authorization details.

Hope this helps!

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

Charith Epitawatta
Ultimate Hero (Employee)
Forum|alt.badge.img+31
  • Ultimate Hero (Employee)
  • 1093 replies
  • Answer
  • September 4, 2021

Hi @Chathura Karunarathna,

Looks like you are trying to access API Doc of an environment hosted in ifs.cloud domain from your local computer and getting a 403: Unauthorized error. You can directly access API Doc only in CORS(Cross-Origin Resource Sharing) enabled environments according to following documentation.

https://docs.ifs.com/techdocs/foundation1/045_administration_aurena/240_integration/010_api_doc/default.htm

This is usually a configuration set in server side that clients decide to enforce or not. All modern browsers enforce this but tools like Postman do not. So you can see whether you get the same error with Postman. You may get a 401: Unauthorized error though, in which case you may have to provide authorization details.

Hope this helps!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings