ForestAdmin / lumber

Install Forest Admin in minutes.
https://www.forestadmin.com
MIT License
2.08k stars 106 forks source link

feat: allow calls from redirections #484

Closed ghusse closed 3 years ago

ghusse commented 3 years ago

When an AJAX call is redirected to another endpoint, the origin is set to the string 'null' instead of the original origin. Servers have to explicitly allow this value and return null in the corresponding cors header.

As we are preparing the authentication flow with OIDC, we will need to allow this origin, at least for authentication routes.

I did not find an easy way to let forest-express handle these cors declarations and only accept this value for routes that needed it. So the simpler solution is to allow null for all routes.

Pull Request checklist:

forest-bot commented 3 years ago

:tada: This PR is included in version 3.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: