Question

FME-Server: CORS-Error

  • 20 November 2018
  • 3 replies
  • 7 views

Badge +1

Hey guys,

Why do I get the error (some texts replaced for security reasons):

Failed to load http://fme-serverdomain.com/fmedatadownload/repository/workspace.fmw?param1=somefile&param2=sometext&opt_responseformat=json&token=123456789&detail=high: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://someotherdomain.com' is therefore not allowed access.

although I configured CORS to allow all hosts

0684Q00000ArAy5QAF.png


3 replies

Userlevel 4
Badge +26

I think in this case it's referring to the specific header 'Access-Control-Allow-Origin' add that into the list of allowed headers and try again

Badge +1

Unfortunately this didn't help

Badge +6

Hi @gpt_executer,

How are you making the call to your FME Server when you're seeing this error? Are you attempting to open the URL to the datadownload service directly in a web browser or are you sending the request from another application? If you're running this from another application, would you be able to share an example of the code you're using to make the call?

Reply