It seems that the anti forergy validation failed due to the missing RequestVerificationToken header. Could you send a screenshot of the request headers the browser is sending to the api?
Also check if there is a cookie set named "XSRF-TOKEN".
Create (Post) and update (Put) and Get Work Fine
I just saw that you are hosting behind an IIS in the response headers. Please ensure that the IIS is configured correctly to allow the DELETE Http-Verb.
Do you use a reserve proxy like nginx or something else that might block delete requests currently?
It seems that the anti forergy validation failed due to the missing RequestVerificationToken header. Could you send a screenshot of the request headers the browser is sending to the api?
Also check if there is a cookie set named "XSRF-TOKEN".
Hi,
can you provide the logs of the host?
Kind regards Nico
Could you share your package.json file of the host project?
Kind regards
NicoThe following is my package.json file:
{ "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~1.0.2", "@volo/saas": "^6.0.2", "@volo/audit-logging": "^6.0.2", "@volo/identity": "^6.0.2", "@volo/account": "^6.0.2", "@volo/language-management": "^6.0.2" } }
Please add @abp/chart.js
, @abp/vue.js
and @abp/vee-validate.js
to your package.json.
These are required for the forms module to work.
Your package.json should look like this afterwards:
{
"version": "1.0.0",
"name": "my-app",
"private": true,
"dependencies": {
"@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~1.0.2",
"@volo/saas": "^6.0.2",
"@volo/audit-logging": "^6.0.2",
"@volo/identity": "^6.0.2",
"@volo/account": "^6.0.2",
"@volo/language-management": "^6.0.2",
"@abp/chart.js": "^6.0.2",
"@abp/vue": "^6.0.2,
"@abp/vee-validate": "^6.0.2"
}
}
After that run abp install-libs
again.
Let me know if that worked.
Could you share your package.json file of the host project?
Kind regards Nico
Hey there,
did you add vue.js manually to the script bundle?
Kind regards Nico
Hi,
try to change this:
options.StyleBundles.Configure(
"MyGlobalBundle",
bundle =>
{
bundle.AddFiles("/global.js");
bundle.AddFiles("/js/Scroll.js");
bundle.AddFiles("/js/exporttoexcel.js");
bundle.AddFiles("/js/Notify.js");
bundle.AddFiles("/js/spinner.js");
}
);
To this:
options.ScriptBundle.Configure(
"MyGlobalBundle",
bundle =>
{
bundle.AddFiles("/global.js");
bundle.AddFiles("/js/Scroll.js");
bundle.AddFiles("/js/exporttoexcel.js");
bundle.AddFiles("/js/Notify.js");
bundle.AddFiles("/js/spinner.js");
}
);
The rest seems ok. If you still face the issue that its not working for some components contact support@abp.io for onsite support. There must be another problem why your added css and js is not available for these components.
Hi,
sorry to hear that this still does not work. Please e-mail support@abp.io for further assistance for this problem.
Kind regards Nico
Ok i will close this issue for now then. Feel free to reopen it its not working when updating.