JsonAPI: call to OPTIONS needed every single time?
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
JsonAPI: call to OPTIONS needed every single time?
I am confused: The JSONAPI documentation and its jquery code examples imply that on each and every call to a resource, OPTIONS must first be called. Is my assumption correct or false?
If I was to create a Vue or React app, I would use axios on initial call and save the resources to a local variable or a pinia variable. That way the OPTIONS request only has to be executed once. Am I totally wrong with that?
Also, the jquery examples seem a bit out of date. Are there any plans to update them? Maybe axios examples?
If I was to create a Vue or React app, I would use axios on initial call and save the resources to a local variable or a pinia variable. That way the OPTIONS request only has to be executed once. Am I totally wrong with that?
Also, the jquery examples seem a bit out of date. Are there any plans to update them? Maybe axios examples?
Re: JsonAPI: call to OPTIONS needed every single time?
In a PWA built with VueJS or ReactJS, you need to call the OPTIONS URL only once. The resources doesn't change.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: JsonAPI: call to OPTIONS needed every single time?
Thanks for clarifying that for me! Much appreciated!