Auth0 Home Blog Docs

Failed by CORS - SAML 2.0 WEB APP

Hi, I have created a user in my app and while sending a request I’m getting back an HTML page to login to validate the IDP. While login into HTML page I’m getting failed by CORS. I’m using SAML 2.0 web apps. Please help how to fix this?

This is my HTML request header

    <head>
        <title>Sign In with Auth0</title>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="robots" content="noindex, nofollow">
        <link rel="shortcut icon" href="https://cdn.auth0.com/styleguide/components/2.0.2/media/logos/img/favicon.png">

Below is my response

{
  "date": "2019-03-07T12:22:54.725Z",
  "type": "fcoa",
  "description": "Origin or referer header required.",
  "connection_id": "",
  "ip": "67.8.118.52",
  "user_agent": "IE 11.0.0 / Windows 10.0.0",
  "details": {
    "body": {
      "client_id": "WxOO0JKJm82qxdiCOYUIIMmbWtIr6AG2",
      "username": "n@gmail.com",
      "password": "*****",
      "realm": "Username-Password-Authentication",
      "credential_type": "http://auth0.com/oauth/grant-type/password-realm"
    },
    "qs": {},
    "connection": null,
    "error": {
      "message": "Origin or referer header required.",
      "oauthError": "Origin or referer header required.",
      "type": "invalid_request",
      "uri": null
    }
  },
  "hostname": "njena.auth0.com",
  "auth0_client": {
    "name": "lock.js",
    "version": "11.11.0",
    "lib_version": {
      "raw": "9.8.1"
    }
  },
  "log_id": "90020190307122254725331671280495929658765740344703272850",
  "isMobile": false
}

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?