FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Invalid CORS pre-flight request. HTTP header not allowed.

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    3
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bvb1992bvb
      last edited by

      I have an issue with CORS when trying to access the oauth2/token endpoint

      cors_error.JPG
      cors_log.JPG cors_config.JPG

      I tried disabling CORS but it doesn't work

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @bvb1992bvb
        last edited by

        @bvb1992bvb What does the event log say? https://fusionauth.io/docs/v1/tech/admin-guide/troubleshooting#event-log has details about how to view it.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • B
          bvb1992bvb
          last edited by

          This is all what the event log says:
          0bb4ffd1-ffcd-4cd9-b697-0689dd727794-image.png

          It seems there is a similar issue reported here:
          https://fusionauth.io/community/forum/topic/835/cors-error-when-posting-to-oauth2-token/7

          It's working when I use postman

          1 Reply Last reply Reply Quote 0
          • First post
            Last post