Allow Any Origin in Tryton


I’ve encountered an issue while developing endpoints using the User Application. I’m trying to allow any origin to access my endpoints. I’ve used the [web] cors = * configuration, but unfortunately, it hasn’t worked.

Is there any other method or configuration to allow access from any domain?

Your assistance on this matter is highly appreciated.

Thank you.

We support only explicit origin in cors, there is no wildcard matching.

But there is an exception for extension like moz-extension:// and chrome-extension:// which are considered as null origin.

Also there is a decorator to allow null origin for the decorated entrypoint.

can I turn off the CORS for development purposes?

No but you can put your localhost.

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.