deeparteffects / deepart-api-html-js-example

Style transfer API for Javascript: An example HTML Javascript webpage and web app for neural style transfer using the Deep Art Effects API.
https://developer.deeparteffects.com
33 stars 11 forks source link

CORS ERROR IN UPLOADPOST #2

Open GIovaB6 opened 2 years ago

GIovaB6 commented 2 years ago

Hi, i'm trying to implement the API in my website. I have a CORS error when i call the uploadPost method deepArtEffectsClient.uploadPost(params, base64image).then(function(result) {...}

This is the error: Access to XMLHttpRequest at 'https://api.deeparteffects.com/v1/upload' from origin 'https://www.lifeconexion.eu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

How can i fix it ? Thank you all for the help

dhwallart commented 1 year ago

I would like to use the api as well. I'm trying it with the JS SDK and have the same problem. I wrote to support. No answer. @GIovaB6 Did they answer you? Was it possible to solve the problem?