Skip to main content
Participant
February 29, 2024
Question

getting cross - origin error while trying to access Photoshop API from localhost:3000.

  • February 29, 2024
  • 1 reply
  • 201 views

Version of the app: React JS

Platform and OS version: Windows 11

Basic steps to reproduce the problem: calling the photoshop remove background API -- https://image.adobe.io/sensei/cutout

Expected result and actual result - It should be accessed

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
February 29, 2024

The API is not meant to be used, typically, in a client-side application, and therefore does not have the CORS headers required for that. If I had to guess anyway - check your developer console to confirm. I would expect that you could build a simple serverless proxy to handle that for you - additionally letting you hide the authentication that you don't want in client-side code for sure.

Raymond Camden
Community Manager
Community Manager
February 29, 2024

Looking at the title of the thread here, which I missed, I can 100% say it's a CORS issue and expected.