Article Overview:
This article will cover how you can achieve the following:
How to avoid the Cross Origin Resource Sharing (CORS) issues
Problem Statement:
Cross-Origin Resource Sharing (CORS) can cause issues if used incorrectly while testing multiple apps or APIs on the same site.
Solution:
If you attempt to run scripts, open documents, or make API calls without first navigating to a new domain from which these scripts, documents, or calls originate, you are likely to encounter CORS (Cross-Origin Resource Sharing) issues. This is particularly a problem when the requests originate from a webpage being tested that hasn't been configured to allow requests from other sources and those sources haven't been configured to respond.
To avoid CORS issues in Virtuoso, navigate to the other URL in a new tab, perform the request (calling an API, opening a document, running a script) in the new tab, and then navigate back to the original tab.
Comments
0 comments
Please sign in to leave a comment.