API Security

Options

Would it be possible to instead of creating a precondition for each API that the call needs to be made from a certain domain, add our personal domains into Xano somewhere and check a box so that ALL calls need to be from our domain?

I know this might not be viable for everyone that uses Xano, just an idea.

Comments

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options

    You can do this yourself!

    I would make a function that executes this header (e.g. source IP) validation. If it passes, return nothing. If it fails, run a precondition.

    Then slap that function at the top of your API endpoints. That way it's one line to run the functionality (no change in logic for your endpoints) and you have one place (the custom function) to change your validation logic/criteria.