Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to enable Cors for Filemaker Server 19.4.2 API ?

Featured Replies

  • Newbies

Hi, 

I tried some solutions by adding the lines below to the httpd.conf <Location “/fmi”> the lines as below  </Location>. But It could not accept the connection from my pc to the server.

Please help me 

Thanks

Error message:

Access to XMLHttpRequest at 'example.com' from origin 'http://localhost:9000' has been blocked by CORS policy: Request header field access-control-allow-headers is not allowed by Access-Control-Allow-Headers in preflight response.

 

Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Authorization"
Header always set Access-Control-Allow-Methods "PATCH, GET, POST, DELETE, OPTIONS"
	
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]

 

  • 10 months later...

I am curios about this also

What are you trying to do? There are ways to avoid the CORS issues, but they often depend on using a different method. The suggestion will depend on what your are actually trying to do that you are running into CORS issues.

  • 5 months later...

I am curious about this too. I want to send requests from a web page to FMS but get the same server cors error...

 

i tried adding to request  - mode: 'no-cors' but still errors

var requestOptions = {
method: 'POST',
mode: 'no-cors',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

 

Edited by coolcat

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.