Skip to main content
Question

FME-Server: CORS-Error

  • November 20, 2018
  • 4 replies
  • 119 views

gpt_geoinfo
Contributor
Forum|alt.badge.img+2

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • November 20, 2018

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


gpt_geoinfo
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 45 replies
  • November 21, 2018

Unfortunately this didn't help


laurawatsafe
Safer
Forum|alt.badge.img+12
  • Safer
  • 158 replies
  • November 22, 2018

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?


runneals
Supporter
Forum|alt.badge.img+28
  • Supporter
  • 322 replies
  • February 13, 2025

I think I’m running into this issue as well.