githubEdit

Resolving CORS errors when authorizing Duplo Local Access Requests

If you encounter a CORS (Cross-Origin Resource Sharing) error when trying to authorize a Duplo Local Access Request from the Duplo cloud browser, this issue can typically be resolved by clearing your local cache. Solution Clear the Duplo cache from your local system using the appropriate command for your operating system: For macOS: rm -rf ~/Library/Caches/duplo* For Windows: rm C:\users$user.duplo\cache After clearing the cache, run your duploctl configuration command again and attempt to authorize the request. The CORS error should be resolved and the authorization should work as expected. Additional Troubleshooting If the issue persists after clearing the cache, you can also try: Using your browser's incognito or private mode Specifying a different browser when running duploctl commands: duploctl jit web --admin --host --interactive --browser chrome As a temporary workaround, you can use temporary tokens from your user profile page instead of the interactive authorization flow The CORS error typically occurs due to cached data conflicting with recent portal updates, so clearing the cache resolves the authorization flow in most cases.

Last updated

Was this helpful?